Skip to content

Commit

Permalink
fix: show help when no arguements passed
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakia committed Jun 18, 2024
1 parent 8743d51 commit 92cb109
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cmd> [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

0 comments on commit 92cb109

Please sign in to comment.