UNPKG

meet-simen

Version:

Get to know Simen via `npx meet-simen`

19 lines (18 loc) 771 B
import { Command } from 'commander'; // Setup CLI options export function setupCli() { const program = new Command(); program .option('-d, --debug', 'Output debug information') .option('-i, --interactive', 'Interactive mode - press Enter to navigate through sections') .option('-r, --remote', 'Load data from remote source') .option('--no-bio', 'Skip bio information') .option('--no-social', 'Skip social links') .option('--no-experience', 'Skip work experience') .option('--no-skills', 'Skip skills') .option('--no-projects', 'Skip projects') .option('--no-ad', 'Skip ad') .option('--no-clear', 'Do not clear the console') .parse(process.argv); return program.opts(); }