From f620bb1764bcc6b60600db782ae13af45b872249 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 8 Jan 2020 00:34:36 +0100 Subject: [PATCH] version bump and help command in addition to flag --- src/autorestic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autorestic.ts b/src/autorestic.ts index 7ee4bef..09dfced 100644 --- a/src/autorestic.ts +++ b/src/autorestic.ts @@ -25,7 +25,7 @@ export const { _: commands, ...flags } = minimist(process.argv.slice(2), { string: ['l', 'b'], }) -export const VERSION = '0.13' +export const VERSION = '0.14' export const INSTALL_DIR = '/usr/local/bin' export const VERBOSE = flags.verbose @@ -33,7 +33,7 @@ export const config = init() async function main() { - if (commands.length < 1) return help() + if (commands.length < 1 || commands[0] === 'help') return help() const command: string = commands[0] const args: string[] = commands.slice(1)