UNPKG

@beauraines/toggl-cli

Version:
15 lines (12 loc) 386 B
#!/usr/bin/env node 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()