mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 16:03:21 +00:00
fix: show help on empty cli args
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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.")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user