Skip to content

Commit 4577b27

Browse files
committed
correct PsBuild -o option #167
1 parent da4bafc commit 4577b27

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

FreeMote.Tools.PsBuild/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ static void Main(string[] args)
6262
var optFastMode = app.Option<bool>("-O0|--fast", "Disable compile optimization, good for speed but bad for output size.", CommandOptionType.NoValue, true);
6363
var optOptSizeMode = app.Option<bool>("-Os|--opt-size", "Enable compile optimization (enabled by default), bad for speed but good for output size.", CommandOptionType.NoValue, true);
6464
var optOutputPath =
65-
app.Option<string>("-o|--output", "Set output file path. May overwrite your original PSB files!", CommandOptionType.SingleValue);
65+
app.Option<string>("-o|--output", "Set output file path. May overwrite your original PSB files!",
66+
CommandOptionType.SingleValue, inherited: true);
6667
//TODO: If set dir, ok; if set filename, only works for the first
6768

6869
//args
@@ -200,8 +201,7 @@ PsBuild port -p win sample.psb
200201
"Keep all sources raw (don't compile jsons or pack MDF shell)", CommandOptionType.NoValue);
201202
var optBodyBinName = archiveCmd.Option<string>("-b|--body <NAME>",
202203
"Set body.bin file name (cannot be path). Default={xxx}_body.bin", CommandOptionType.SingleValue);
203-
var optOutputPath =
204-
archiveCmd.Option<string>("-o|--output", "Set output file path. May overwrite your original PSB files!", CommandOptionType.SingleValue);
204+
205205
//args
206206
var argPsbPaths = archiveCmd.Argument("PSB", "Archive Info PSB .json paths", true);
207207

0 commit comments

Comments
 (0)