From b690c1c3a9cf2c7f0ea0df518bcca64f61e1e56f Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 7 Nov 2020 12:55:16 +0100 Subject: [PATCH] correct link --- src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 69418da..4ddd6e6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,12 +31,18 @@ const enqueue = (fn: Function) => (cmd: any) => { } program.storeOptionsAsProperties() -program.name('autorestic').version(VERSION) +program.name('autorestic').description('Easy Restic CLI Utility').version(VERSION) program.option('-c, --config ', 'Config file').option('-v, --verbose', 'Verbosity', false) program.command('info').action(enqueue(info)) +program.on('--help', () => { + console.log('') + console.log(`${'Docs:'.yellow}\t\thttps://autorestic.vercel.app`) + console.log(`${'Examples:'.yellow}\thttps://autorestic.vercel.app/examples`) +}) + program .command('check') .description('Checks and initializes backend as needed')