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

The --help/-h option doesn't work #152

Open
aik099 opened this issue May 24, 2024 · 0 comments
Open

The --help/-h option doesn't work #152

aik099 opened this issue May 24, 2024 · 0 comments
Labels

Comments

@aik099
Copy link
Member

aik099 commented May 24, 2024

The --help/-h option processing works like this:

  1. the Application has private wantHelps property
  2. when the --help/-h option is given, then the wantHelps property is set to true
  3. when Application::get is used to retrieve a command, then a HelpCommand is retrieved instead
  4. the first code to call Application::get is the one, that executes the command, that the user requested
    .

However, the AggregateCommand::setApplication method requests all commands but doesn't execute all of them causing the wantHelps property to reset and no help screen is shown.

@aik099 aik099 added the bug label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant