
import yargs from 'yargs'
import log   from './commands/tick-log'
import list  from './commands/tick-list'
import rm    from './commands/tick-rm'

let master = yargs
.usage('tick <command>')
.command('log', 'log a tick')
.command('list', 'list your ticks')
.help('h')
.alias('h', 'help')
.demand(1, 'you must provide a valid command')

let argv = master.argv
let command = argv._[0]

if (command === 'log') {
  log(master.reset())
}

if (command === 'list') {
  list(master.reset())
}

if (command === 'rm') {
  rm(master.reset())
}


import yargs from 'yargs'
import log   from './commands/tick-log'
import list  from './commands/tick-list'
import rm    from './commands/tick-rm'

let master = yargs
.usage('tick <command>')
.command('log', 'log a tick')
.command('list', 'list your ticks')
.command('rm', 'delete a tick')
.help('h')
.alias('h', 'help')
.demand(1, 'you must provide a valid command')

let argv = master.argv
let command = argv._[0]

if (command === 'log') {
  log(master.reset())
}

if (command === 'list') {
  list(master.reset())
}

if (command === 'rm') {
  rm(master.reset())
}

Add help for the rm command
Add help for the rm command
