You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? Please include the actual source code causing the issue.
I ran markbind -h/--help / markbind <option> -h/--help.
What did you expect to happen?
Like other commands, -h/--help should output with the header:
__ __ _ ____ _ _
| \/ | __ _ _ __ | | __ | __ ) (_) _ __ __| |
| |\/| | / _` | | '__| | |/ / | _ \ | | | '_ \ / _` |
| | | | | (_| | | | | < | |_) | | | | | | | | (_| |
|_| |_| \__,_| |_| |_|\_\ |____/ |_| |_| |_| \__,_|
v1.17.1
Usage: markbind <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
init|i [root] init a markbind website project
serve|s [options] [root] build then serve a website from a directory
deploy|d [options] deploy the site to the repo's Github pages.
build|b [options] [root] [output] build a website
What actually happened? Please include the actual, raw output.
The help information was printed without a header:
PS C:\Users\pzy5a\Desktop\testbind> markbind -h
Usage: index <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
init|i [root] init a markbind website project
serve|s [options] [root] build then serve a website from a directory
deploy|d [options] deploy the site to the repo's Github pages.
build|b [options] [root] [output] build a website
This was also the case for option help eg. markbind serve -h/--help.
Also, the usage information is improperly formatted; it should be markbind <command> instead of index <command> (note the extraneous space).
The text was updated successfully, but these errors were encountered:
I have investigated the issue and have a suggested fix in #946
The current version of commander does not support custom help messages: tj/commander.js#893. However, commander v3.0 supports customisation of help messages and flags: tj/commander.js#242 (comment).
I also fixed the usage information by setting program.name to markbind.
As I am new to node and npm however, I am unsure whether simply updating the version in package.json is sufficient to update the deployed version of commander.
Tell us about your environment
What did you do? Please include the actual source code causing the issue.
I ran
markbind -h/--help
/markbind <option> -h/--help
.What did you expect to happen?
Like other commands,
-h/--help
should output with the header:What actually happened? Please include the actual, raw output.
The help information was printed without a header:
This was also the case for option help eg.
markbind serve -h/--help
.Also, the usage information is improperly formatted; it should be
markbind <command>
instead ofindex <command>
(note the extraneous space).The text was updated successfully, but these errors were encountered: