Change arguments to options
This commit is contained in:
parent
b15687e54a
commit
8f3382e297
@ -28,28 +28,28 @@ FileInfo? Parse(SymbolResult result, string defaultFileName)
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var saveFileArgument = new Argument<FileInfo?>(
|
var saveFileArgument = new Option<FileInfo?>(
|
||||||
name: "--save-file",
|
name: "--save-file",
|
||||||
description: "Path to the save file from local save mod",
|
description: "Path to the save file from local save mod",
|
||||||
isDefault: true,
|
isDefault: true,
|
||||||
parse: result => Parse(result, "record_enso_p1.json")
|
parseArgument: result => Parse(result, "record_enso_p1.json")
|
||||||
);
|
);
|
||||||
|
|
||||||
var dbFileArgument = new Argument<FileInfo?>(
|
var dbFileArgument = new Option<FileInfo?>(
|
||||||
name: "--db-file-path",
|
name: "--db-file-path",
|
||||||
description: "Path to the database file for local server",
|
description: "Path to the database file for local server",
|
||||||
isDefault: true,
|
isDefault: true,
|
||||||
parse: result => Parse(result, "wwwroot/taiko.db3")
|
parseArgument: result => Parse(result, "wwwroot/taiko.db3")
|
||||||
);
|
);
|
||||||
|
|
||||||
var musicInfoArgument = new Argument<FileInfo?>(
|
var musicInfoArgument = new Option<FileInfo?>(
|
||||||
name: "--music-info-file",
|
name: "--music-info-file",
|
||||||
description: "Path to the music info json/bin file",
|
description: "Path to the music info json/bin file",
|
||||||
isDefault: true,
|
isDefault: true,
|
||||||
parse: result => Parse(result, "wwwroot/data/musicinfo.json")
|
parseArgument: result => Parse(result, "wwwroot/data/musicinfo.json")
|
||||||
);
|
);
|
||||||
|
|
||||||
var baidArgument = new Argument<int>(
|
var baidArgument = new Option<int>(
|
||||||
name: "--baid",
|
name: "--baid",
|
||||||
description: "Target card's baid, data will be imported to that card",
|
description: "Target card's baid, data will be imported to that card",
|
||||||
getDefaultValue: () => 1
|
getDefaultValue: () => 1
|
||||||
|
Loading…
Reference in New Issue
Block a user