fix: show help on empty cli args

This commit is contained in:
Ruben Fiszel
2023-08-18 00:26:44 +02:00
parent e0101da169
commit c75ab4811e
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -101,6 +101,9 @@ if (Number.parseInt(VERSION.replace("v", "").replace(".", "")) > 1700) {
export let showDiffs = false;
try {
if (Deno.args.length === 0) {
command.showHelp();
}
const LOG_LEVEL =
Deno.args.includes("--verbose") || Deno.args.includes("--debug")
? "DEBUG"
+4
View File
@@ -829,6 +829,10 @@ async function push(
}
const command = new Command()
.description(
"sync local with a remote workspaces or the opposite (push or pull)"
)
.action(() =>
log.info("2 actions available, pull and push. Use -h to display help.")
)