From 8236b29c37437a7b3f552b78e8584744c0dc9874 Mon Sep 17 00:00:00 2001 From: mixmix Date: Wed, 23 Oct 2024 15:18:17 +1300 Subject: [PATCH] cli descriptions refactor --- src/cli.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index 3511232..10d9f09 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -19,11 +19,17 @@ const program = new Command() /* no command */ program .name('entropy') - .description('CLI interface for interacting with entropy.xyz. Running this binary without any commands or arguments starts a text-based interface.') + .description([ + 'CLI interface for interacting with entropy.xyz.', + 'Running this binary without any commands or arguments starts a text-based interface.' + ].join(' ')) .addOption( new Option( '-d, --dev', - 'Runs entropy in a developer mode uses the dev endpoint as the main endpoint and allows for faucet option to be available in the main menu' + [ + 'Runs entropy in a developer mode uses the dev endpoint as the main endpoint and', + 'allows for faucet option to be available in the main menu' + ].join(' ') ) .env('DEV_MODE') .hideHelp() @@ -42,7 +48,8 @@ program : undefined // NOTE: // - on initial startup you have no account - // - no custom config for the TUI at moment (opt.name collisions) + // - no custom config for the TUI at moment + // - option name collisions, see: https://github.com/tj/commander.js/issues/2260 launchTui(entropy, opts) }) .hook('preAction', async (thisCommand, actionCommand) => {