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
20000 $ nps -hUsage: ../../../../bin/node_modules/nps/dist/bin/nps.js [options] <script>...Commands: init automatically migrate from npm scripts to nps completion generate bash completion scriptOptions: --config, -c Config file to use (defaults to nearest package-scripts.yml or package-scripts.js) [default: "/path/to/my/package-scripts.js"] --silent, -s Silent nps output [boolean] [default: false] --log-level, -l The log level to use [choices: "error", "warn", "info", "debug"] [default: "info"] --require, -r Module to preload --scripts Log command text for script [boolean] [default: true] --help-style, -y Choose the level of detail displayed by the help command [choices: "all", "scripts", "basic"] [default: "all"] -h, --help Show help [boolean] -v, --version Show version number [boolean]Examples: ../../../../bin/node_modules/nps/dist/bi Runs the `test` script then the n/nps.js test build `build` script ../../../../bin/node_modules/nps/dist/bi Runs the `test` script and forwards n/nps.js "test --cover" "build --prod" the "--cover" flag then the `build` script and forwards the "--prod" flag
Problem description:
This output does not include the section Available scripts that you get when you run nps help.
It also does not include the command help in the Commands: section, so you can't find that out without reading the documentation
Suggested solution:
-h and --help should also list available scripts. This is IMHO the least surprising UX.
The text was updated successfully, but these errors were encountered:
Hi @wmertens, thanks for the issue. I agree listing available scripts with -h or --help makes sense from a UX perspective, as well as having the help command in the Commands section. Would you be free to make a PR for this?
nps
version: 5.9.0node
version: 8.9.4npm
version: 6.1.0Scripts file (or at least the relevant bits):
The command executed:
nps -h
The output:
Problem description:
This output does not include the section
Available scripts
that you get when you runnps help
.It also does not include the command
help
in theCommands:
section, so you can't find that out without reading the documentationSuggested solution:
-h
and--help
should also list available scripts. This is IMHO the least surprising UX.The text was updated successfully, but these errors were encountered: