@beauraines/toggl-cli
Version:
CLI client for Toggl Time Tracker
15 lines (12 loc) • 386 B
JavaScript
import yargs from 'yargs'
import { hideBin } from 'yargs/helpers'
import { commands } from './cmds/index.mjs'
yargs(hideBin(process.argv))
.scriptName('toggl')
.command(commands)
.strict()
.completion('completion', 'Outputs bash/zsh-completion shortcuts for commands and options to add to .bashrc or .bash_profile')
.demandCommand()
.help()
.parse()