import program from 'commander' import _ from 'lodash' import * as runner from '../src/task-runner' program .option('-p, --planet [planet name]', 'the planet(s) to send probes from') .option('--dry-run', 'show what would happen without actually changing anything') .parse(process.argv) runner.run('send-probes', _.pick(program, ['planet', 'dryRun']))