Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--help may not be recognized when specifying options. #155

Open
BouKiCHi opened this issue Jan 5, 2025 · 1 comment
Open

--help may not be recognized when specifying options. #155

BouKiCHi opened this issue Jan 5, 2025 · 1 comment

Comments

@BouKiCHi
Copy link

BouKiCHi commented Jan 5, 2025

Verified version: ConsoleAppFramework Version 5.3.3

Code:

var app = ConsoleAppFramework.ConsoleApp.Create();
app.Add<CliEntryCommands>();
app.Run(args);

class CliEntryCommands {
  /// <summary>
  /// echo
  /// </summary>
  /// <param name="val">-v, value</param>
  public void Echo(string val) {
    Console.WriteLine($"msg:{val}");
  }
}

The following output is generated in the following cases

. \ConsoleAppFrameworkTest.exe echo -v a --help
The following is the output of the following case
Argument '--help' is not recognized.

It might not be a bug, but I wanted to report it.
Thanks.

@neuecc
Copy link
Member

neuecc commented Jan 6, 2025

Thanks for the report.
To allow the argument name ‘help’, the default help display is not shown after the command is selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants