Skip to content

Commit

Permalink
Alias -ls to list tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbraden committed Aug 17, 2012
1 parent 060e84d commit 66528f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/program.js
Expand Up @@ -48,6 +48,11 @@ optsReg = [
, abbr: 'T' , abbr: 'T'
, preempts: true , preempts: true
} }
// Alias ls
, { full: 'tasks'
, abbr: 'ls'
, preempts: true
}
, { full: 'trace' , { full: 'trace'
, abbr: 't' , abbr: 't'
, preempts: false , preempts: false
Expand Down Expand Up @@ -94,7 +99,7 @@ usage = ''
+ ' -C, --directory DIRECTORY Change to DIRECTORY before running tasks.\n' + ' -C, --directory DIRECTORY Change to DIRECTORY before running tasks.\n'
+ ' -q, --quiet Do not log messages to standard output.\n' + ' -q, --quiet Do not log messages to standard output.\n'
+ ' -B, --always-make Unconditionally make all targets.\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' + ' -J, --jakelibdir JAKELIBDIR Auto-import any .jake files in JAKELIBDIR. (default is \'jakelib\')\n'
+ ' -t, --trace Enable full backtrace.\n' + ' -t, --trace Enable full backtrace.\n'
+ ' -h, --help Display this help message.\n' + ' -h, --help Display this help message.\n'
Expand Down
4 changes: 4 additions & 0 deletions test/parseargs.js
Expand Up @@ -15,6 +15,10 @@ var parseargs = require('../lib/parseargs')
, abbr: 'T' , abbr: 'T'
, preempts: true , preempts: true
} }
, { full: 'tasks'
, abbr: 'ls'
, preempts: true
}
, { full: 'trace' , { full: 'trace'
, abbr: 't' , abbr: 't'
, preempts: false , preempts: false
Expand Down

0 comments on commit 66528f7

Please sign in to comment.