From 7e161d2ecfdb321a86befde5fb6d2c309652a3af Mon Sep 17 00:00:00 2001 From: Patrik Henningsson Date: Fri, 19 Aug 2016 15:10:36 +0200 Subject: [PATCH] Add short form of some CLI options again --- bin/cli.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index f45f7122..9f317a68 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -9,15 +9,14 @@ const version = require('../package.json').version; program .version(version) .usage('[options] ') - .option('--basedir ', 'base directory for resolving paths') - .option('--list', 'show dependency list (default)') - .option('--summary', 'show dependency count summary') - .option('--circular', 'show circular dependencies') - .option('--depends ', 'show module dependents') - .option('--exclude ', 'exclude modules using RegExp') - .option('--json', 'output as JSON') - .option('--image ', 'write graph to file as an image') - .option('--layout ', 'layout engine to use for graph (dot/neato/fdp/sfdp/twopi/circo)') + .option('-b --basedir ', 'base directory for resolving paths') + .option('-s, --summary', 'show dependency count summary') + .option('-c, --circular', 'show circular dependencies') + .option('-d, --depends ', 'show module dependents') + .option('-x, --exclude ', 'exclude modules using RegExp') + .option('-j, --json', 'output as JSON') + .option('-i, --image ', 'write graph to file as an image') + .option('-l, --layout ', 'layout engine to use for graph (dot/neato/fdp/sfdp/twopi/circo)') .option('--dot', 'show graph using the DOT language') .option('--extensions ', 'comma separated string of valid file extensions') .option('--show-extension', 'include file extension in module name', false)