@@ -75,13 +75,13 @@ auto main( int argc, char* argv[] ) -> int {
75
75
params.add_parameter ( fileIncludes, " --include" )
76
76
.help ( " RegExp pattern(s) to include files when creating the index. If not present, all files not matching an exclusion will be included." )
77
77
.metavar ( " included" );
78
- params.add_parameter ( archiveExcludes, " --exclude-archives " , " -E" )
79
- .help ( " RegExp pattern(s) to exclude VPKs when creating the index. Ignored if `--steam-depot-config` is present ." )
80
- .metavar ( " excluded-archives " )
78
+ params.add_parameter ( archiveExcludes, " --archive-exclude " , " -E" )
79
+ .help ( " RegExp pattern(s) to exclude files inside VPKs when creating the index." )
80
+ .metavar ( " archive-excluded " )
81
81
.minargs ( 1 );
82
- params.add_parameter ( archiveIncludes, " --include-archives " )
83
- .help ( " RegExp pattern(s) to include VPKs when creating the index. If not present, all VPKs not matching an exclusion will be included." )
84
- .metavar ( " included-archives " );
82
+ params.add_parameter ( archiveIncludes, " --archive-include " )
83
+ .help ( " RegExp pattern(s) to include files inside VPKs when creating the index. If not present, all files inside VPKs not matching an exclusion will be included." )
84
+ .metavar ( " archive-included " );
85
85
params.add_parameter ( steamDepotConfig, " --steam-depot-config" )
86
86
.help ( " Use a Steam depot configuration file to include/exclude content. Pair this option with `--steam-depot-ids`." )
87
87
.metavar ( " steam-depot-config" )
@@ -142,6 +142,16 @@ auto main( int argc, char* argv[] ) -> int {
142
142
fileExcludes.emplace_back ( " .*\\ .log" );
143
143
fileExcludes.emplace_back ( " .*verifier_index\\ .rsv" );
144
144
145
+ // if we're reading the contents of archives, numbered VPKs should not be considered
146
+ if (! skipArchives ) {
147
+ fileExcludes.emplace_back ( R"( .*_[0-9][0-9][0-9]\.vpk)" );
148
+ } else {
149
+ if (! archiveExcludes.empty () )
150
+ Log_Warn ( " The current action doesn't support `--archive-exclude`, it will be ignored." );
151
+ if (! archiveIncludes.empty () )
152
+ Log_Warn ( " The current action doesn't support `--archive-include`, it will be ignored." );
153
+ }
154
+
145
155
// create from a steam depot config
146
156
if ( !steamDepotConfig.empty () || !steamDepotIDs.empty () ) {
147
157
if ( steamDepotConfig.empty () && !steamDepotIDs.empty () ) {
@@ -166,9 +176,9 @@ auto main( int argc, char* argv[] ) -> int {
166
176
if (! fileIncludes.empty () )
167
177
Log_Warn ( " The current action doesn't support `--include`, it will be ignored." );
168
178
if (! archiveExcludes.empty () )
169
- Log_Warn ( " The current action doesn't support `--exclude-archives `, it will be ignored." );
179
+ Log_Warn ( " The current action doesn't support `--archive-exclude `, it will be ignored." );
170
180
if (! archiveIncludes.empty () )
171
- Log_Warn ( " The current action doesn't support `--include-archives `, it will be ignored." );
181
+ Log_Warn ( " The current action doesn't support `--archive-include `, it will be ignored." );
172
182
if (! steamDepotConfig.empty () )
173
183
Log_Warn ( " The current action doesn't support `--steam-depot-config`, it will be ignored." );
174
184
if (! steamDepotIDs.empty () )
0 commit comments