[CLI] Add help message when no subcommand is specified
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6bfcb3642d
commit
78c40e4819
@ -94,4 +94,6 @@ if (command) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(Colors.bold(Colors.red("An error occured:")), err.message);
|
console.log(Colors.bold(Colors.red("An error occured:")), err.message);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
flags.cmd.help();
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "@denreg-cli",
|
"name": "@denreg-cli",
|
||||||
"version": "0.2.5",
|
"version": "0.2.6",
|
||||||
"description": "CLI for the DenReg package registry",
|
"description": "CLI for the DenReg package registry",
|
||||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||||
"contributors": [],
|
"contributors": [],
|
||||||
"files": ["**/*.ts", "**/*.js", "README.md"],
|
"files": [
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.js",
|
||||||
|
"README.md"
|
||||||
|
],
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"prepublish": "pre.ts"
|
"prepublish": "pre.ts"
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
export const version = "0.2.5"
|
export const version = "0.2.6"
|
Loading…
Reference in New Issue
Block a user