diff --git a/lib/program.js b/lib/program.js index b61fbde3..b548e428 100644 --- a/lib/program.js +++ b/lib/program.js @@ -48,6 +48,11 @@ optsReg = [ , abbr: 'T' , preempts: true } +// Alias ls +, { full: 'tasks' + , abbr: 'ls' + , preempts: true + } , { full: 'trace' , abbr: 't' , preempts: false @@ -94,7 +99,7 @@ usage = '' + ' -C, --directory DIRECTORY Change to DIRECTORY before running tasks.\n' + ' -q, --quiet Do not log messages to standard output.\n' + ' -B, --always-make Unconditionally make all targets.\n' - + ' -T, --tasks Display the tasks (matching optional PATTERN) with descriptions, then exit.\n' + + ' -T, -ls, --tasks Display the tasks (matching optional PATTERN) with descriptions, then exit.\n' + ' -J, --jakelibdir JAKELIBDIR Auto-import any .jake files in JAKELIBDIR. (default is \'jakelib\')\n' + ' -t, --trace Enable full backtrace.\n' + ' -h, --help Display this help message.\n' diff --git a/test/parseargs.js b/test/parseargs.js index 46cdfc9d..5997d07c 100644 --- a/test/parseargs.js +++ b/test/parseargs.js @@ -15,6 +15,10 @@ var parseargs = require('../lib/parseargs') , abbr: 'T' , preempts: true } + , { full: 'tasks' + , abbr: 'ls' + , preempts: true + } , { full: 'trace' , abbr: 't' , preempts: false