1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-11-26 07:33:00 +00:00

Fix command name in help text

This commit is contained in:
Starbeamrainbowlabs 2021-04-20 01:34:26 +01:00
parent 4e01ce965d
commit 85167c630e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,7 @@ npm install --save terrain50-cli
## v1.9 (unreleased) ## v1.9 (unreleased)
- `identify`: Add value range to output - `identify`: Add value range to output
- `clamp`: add new subcommand - `clamp`: add new subcommand
- Fix command name in help text
## v1.8 ## v1.8

View file

@ -59,6 +59,7 @@ async function get_actions_metadata() {
export default async function() { export default async function() {
let cli = new CliParser(path.resolve(__dirname, "../../package.json")); let cli = new CliParser(path.resolve(__dirname, "../../package.json"));
cli.set_name("terrain50"); // The command name is actually terrain50, even though the package name is terrain50-cli
cli.set_description_extended(`With terrain50 ${await get_version()}`); cli.set_description_extended(`With terrain50 ${await get_version()}`);
cli.argument("log-level", "The logging level. Possible values: debug (default), info, log, warn, error, none", "debug", "string"); cli.argument("log-level", "The logging level. Possible values: debug (default), info, log, warn, error, none", "debug", "string");
cli.argument("tolerant", "When parsing streams of data, be more tolerant of whitespace inconsistencies and other errors at the cost of decreased performance (otherwise it is assumed a single space separates elements on a line).", false, "boolean"); cli.argument("tolerant", "When parsing streams of data, be more tolerant of whitespace inconsistencies and other errors at the cost of decreased performance (otherwise it is assumed a single space separates elements on a line).", false, "boolean");