Browse Source

Add help

master
Tony Kovanen 9 years ago
parent
commit
18e516bfab
  1. 19
      bin/now-remove

19
bin/now-remove

@ -11,6 +11,25 @@ import { handleError, error } from '../lib/error';
const argv = minimist(process.argv.slice(2));
const deploymentId = argv._[0];
// options
const help = () => {
console.log(`
𝚫 now remove [deploymentId]
Alias: rm
Options:
-h, --help output usage information
-d, --debug Debug mode [off]
`);
};
if (argv.h || argv.help) {
help();
process.exit(0);
}
if (!deploymentId) {
console.log(`${chalk.cyan('> No deployment id specified. You can see active deployments with `now ls`.')}`);
process.exit(1);

Loading…
Cancel
Save