1
0
mirror of synced 2024-11-12 01:20:51 +01:00

Change arguments to options

This commit is contained in:
asesidaa 2022-11-01 00:53:37 +08:00
parent b15687e54a
commit 8f3382e297

View File

@ -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