version bump and help command in addition to flag

This commit is contained in:
cupcakearmy 2020-01-08 00:34:36 +01:00
parent e3506e44b5
commit f620bb1764

View File

@ -25,7 +25,7 @@ export const { _: commands, ...flags } = minimist(process.argv.slice(2), {
string: ['l', 'b'], string: ['l', 'b'],
}) })
export const VERSION = '0.13' export const VERSION = '0.14'
export const INSTALL_DIR = '/usr/local/bin' export const INSTALL_DIR = '/usr/local/bin'
export const VERBOSE = flags.verbose export const VERBOSE = flags.verbose
@ -33,7 +33,7 @@ export const config = init()
async function main() { async function main() {
if (commands.length < 1) return help() if (commands.length < 1 || commands[0] === 'help') return help()
const command: string = commands[0] const command: string = commands[0]
const args: string[] = commands.slice(1) const args: string[] = commands.slice(1)