From 6074f629075f8b6af0bb50bb5c778b0e48b244f1 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 12 Jun 2024 09:39:44 +1000 Subject: [PATCH] Standardise command-line flags to snake-case, improve `--help` docs --- src/BizHawk.Client.Common/ArgParser.cs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/BizHawk.Client.Common/ArgParser.cs b/src/BizHawk.Client.Common/ArgParser.cs index da868d18b5b..5e7d77a21b8 100644 --- a/src/BizHawk.Client.Common/ArgParser.cs +++ b/src/BizHawk.Client.Common/ArgParser.cs @@ -22,9 +22,12 @@ public BespokeOption(string name) public BespokeOption(string name, string description) : base(name: name, description: description) {} + + public BespokeOption(string[] aliases) + : base(aliases) {} } - private static readonly Argument ArgumentRomFilePath = new("rom", () => null); + private static readonly Argument ArgumentRomFilePath = new(name: "rom", () => null, description: "path; if specified, the file will be loaded the same way as it would be from `File` > `Open...`"); private static readonly IReadOnlyList