Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Alias -ls to -T #148

Merged
merged 1 commit into from

2 participants

@peterbraden

Similar syntax to many other unix utilities.

@mde mde merged commit 376232f into jakejs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 17, 2012
  1. @peterbraden

    Alias -ls to list tasks

    peterbraden authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 1 deletion.
  1. +6 −1 lib/program.js
  2. +4 −0 test/parseargs.js
View
7 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'
View
4 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
Something went wrong with that request. Please try again.