Skip to content

Commit

Permalink
fix: Improve help texts for and sort available sub-commands in help t…
Browse files Browse the repository at this point in the history
…exts.

Fixes #431
  • Loading branch information
Göran Sander committed Mar 10, 2024
1 parent b191d69 commit ec9f1ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ctrl-q.js
Expand Up @@ -46,6 +46,17 @@ import {

const program = new Command();

// Set the name of the program (to be used in help text)
program.name('ctrl-q');

// Set help text to be shown after errors
program.showHelpAfterError('(add --help for additional information about required and optional parameters)');

// Help text configuration
program.configureHelp({
sortSubcommands: true,
});

/**
* Top level async function.
* Workaround to deal with the fact that Node.js doesn't currently support top level async functions...
Expand Down

0 comments on commit ec9f1ad

Please sign in to comment.