From 92cb10976e86d2ebc2e616a5f3cbca41b7ceb31f Mon Sep 17 00:00:00 2001 From: mistakia <1823355+mistakia@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:11:45 -0400 Subject: [PATCH] fix: show help when no arguements passed --- cli/index.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/index.mjs b/cli/index.mjs index 606cc693..90258164 100755 --- a/cli/index.mjs +++ b/cli/index.mjs @@ -421,13 +421,14 @@ async function send_message_handler(type, block_hash = null) { // eslint-disable-next-line no-unused-expressions yargs(hideBin(process.argv)) - .scriptName('nano-cli') + .scriptName('nano-community') .usage('$0 [args]') .command(add_signing_key) .command(revoke_signing_key) .command(update_rep_meta) .command(update_account_meta) .command(update_block_meta) + .demandCommand(1, 'You must provide at least one command.') .help('h') .wrap(100) .alias('h', 'help').argv