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(