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

Collect: help #1225

Closed
shadowspawn opened this issue Mar 21, 2020 · 8 comments
Closed

Collect: help #1225

shadowspawn opened this issue Mar 21, 2020 · 8 comments
Milestone

Comments

@shadowspawn
Copy link
Collaborator

shadowspawn commented Mar 21, 2020

Collecting help issues that have come up multiple times.

Override or disable help option:

Struck out items included in Command v6.1.0

@shadowspawn
Copy link
Collaborator Author

shadowspawn commented Mar 21, 2020

Customisation, especially prefix/banner:

Struck out items included in Commander v7.0.0

@shadowspawn shadowspawn changed the title Triage: help Group: help Mar 27, 2020
@shadowspawn shadowspawn changed the title Group: help Collect: help Mar 27, 2020
@shadowspawn

This comment has been minimized.

@shadowspawn

This comment has been minimized.

@shadowspawn
Copy link
Collaborator Author

shadowspawn commented Aug 4, 2020

A possible syntax for disabling the built-in help option could be:

program.helpOption(false);

with some symmetry with:

program.addHelpCommand(false);

Update: shipped this in Command v6.1

@shadowspawn

This comment has been minimized.

@shadowspawn
Copy link
Collaborator Author

shadowspawn commented Sep 2, 2020

Trying .addHelpText() which takes a position as first parameter, and a string to add or a function returning a string. Position is 'before' or 'after' to affect just this command, and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.

.help() and .outputHelp() can be passed { error: true } to write to stderr.

For example:

program.addHelpText('afterAll', '/nSee the web site for more information');

See #1296 for more info. Coming in v7.

@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Sep 9, 2020
@shadowspawn shadowspawn added this to the v7.0.0 milestone Sep 9, 2020
@shadowspawn
Copy link
Collaborator Author

Major improvements to custom help included in v7.0.0 pre-release #1386

@shadowspawn shadowspawn removed their assignment Jan 10, 2021
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Jan 15, 2021
@shadowspawn
Copy link
Collaborator Author

Commander 7.0.0 has shipped. Most of the collected issues have now been addressed.

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

1 participant