From a8f4c232545c58f7bb1af9210ba59bfbe795e0a7 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 4 Dec 2019 20:53:06 +0100 Subject: [PATCH] version bump --- src/autorestic.ts | 2 +- src/handlers.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/autorestic.ts b/src/autorestic.ts index 2a97e41..0550aee 100644 --- a/src/autorestic.ts +++ b/src/autorestic.ts @@ -26,7 +26,7 @@ export const { _: commands, ...flags } = minimist(process.argv.slice(2), { string: ['l', 'b'], }) -export const VERSION = '0.6' +export const VERSION = '0.7' export const INSTALL_DIR = '/usr/local/bin' export const VERBOSE = flags.verbose diff --git a/src/handlers.ts b/src/handlers.ts index cc9e8f3..2ed019c 100644 --- a/src/handlers.ts +++ b/src/handlers.ts @@ -85,7 +85,7 @@ const handlers: Handlers = { if (!config) throw ConfigError checkIfResticIsAvailable() - if(!flags.to) { + if (!flags.to) { console.log(`You need to specify the restore path with --to`.red) return } @@ -259,6 +259,7 @@ export const help = () => { '\n', ) } + export const error = () => { help() console.log(