[CLI] Add help message when no subcommand is specified
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-09-15 11:40:25 +02:00
parent 6bfcb3642d
commit 78c40e4819
3 changed files with 9 additions and 3 deletions

View File

@ -94,4 +94,6 @@ if (command) {
} catch (err) {
console.log(Colors.bold(Colors.red("An error occured:")), err.message);
}
} else {
flags.cmd.help();
}

View File

@ -1,10 +1,14 @@
{
"name": "@denreg-cli",
"version": "0.2.5",
"version": "0.2.6",
"description": "CLI for the DenReg package registry",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [],
"files": ["**/*.ts", "**/*.js", "README.md"],
"files": [
"**/*.ts",
"**/*.js",
"README.md"
],
"hooks": {
"prepublish": "pre.ts"
}

View File

@ -1 +1 @@
export const version = "0.2.5"
export const version = "0.2.6"