Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: botriot/commander.js
base: 7600910dd1
...
head fork: botriot/commander.js
compare: ce7ffd7141
Commits on Oct 05, 2011
Jim Isaacs Missed checking for null here in last pull request. Doesn't break any…
…thing either way, this just allows for empty [optional] options that have a default.
3bfe216
@tj tj Merge pull request #17 from jimisaacs/master
Allow for empty [optional] options and actually default them to their default
157bb8f
@tj tj clean up a6a0b7c
@tj tj clean up 8940476
@tj tj clean up e58e26a
Commits on Oct 22, 2011
@tj tj annotated source link 9c9689c
Commits on Oct 23, 2011
@tj tj docs 086376a
Commits on Oct 24, 2011
@tj tj "node": ">= 0.4.x < 0.7.0". Closes #20 7eca00e
@tj tj Release 0.2.1 81ec7aa
Commits on Oct 31, 2011
@tj tj Added support for long flags only. Closes #18
.option("--whatever", "some stuff")
8432082
@tj tj Release 0.3.0 476ddaf
@felixge felixge Make version flags configurable
I would like to use '-v' for '--verbose' and only expose version as
'--version'. This change allows me to do this without changing the
defaults for everybody else.
c7a6ac1
@felixge felixge Document flags parameter a0b3f1a
@tj tj Merge pull request #22 from felixge/custom-version-flags
Make version flags configurable
060c5d3
@tj tj Changed --version short flag to -V
so they line up nice still, -V is lame but meh
9656c37
@tj tj Release 0.3.1 d3deb36
Commits on Nov 01, 2011
@felixge felixge Fix: Long-only flags would not take values
For '--longflag [value]', '--longflag' was being mistaken for the
short option, and '[value]' as the long option. This patch fixes
this by checking if the second flag argument starts with [ or <
which indicates a value being expected.
9e8f3b2
@tj tj Merge pull request #23 from felixge/long-only-flags-with-values
Fix: Long-only flags would not take values
6480233
@tj tj Release 0.3.2 d1491e4
Commits on Nov 14, 2011
@jhamlet jhamlet Wait till STDOUT stream is drained before exiting the process.
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
fca696a
@jhamlet jhamlet Wait for the close event, write our help information, then give other…
… events a chance to write something, and then ask to destroySoon the stdout stream.

Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
f941344
@tj tj fix styling fe44783
@tj tj Merge branch 'integration' e01dd89
@tj tj ws 6b5ac39
@tj tj Release 0.3.3 8cecea0
@tj tj bump bbc53f9
Commits on Nov 15, 2011
@tj tj Added support for --. Closes #24 e4abf05
@tj tj Release 0.4.0 29a3187
@tj tj added an assert to test.literal.args.js 4f0c67f
Commits on Nov 18, 2011
@tj tj Added .usage() example in docs 2127275
@tj tj removed listening for "close" on --help
this was breaking for me on 0.4.x and 0.6.x
7d1cac0
@tj tj Release 0.4.1 41fdf89
Commits on Nov 20, 2011
@itay itay Add options for subcommands b32fcca
@itay itay Make the subcommand tests a bit more robust b2f4dad
Commits on Nov 23, 2011
@itay itay Add help for subcommands (should resolve issue #2) 4788f70
Commits on Nov 24, 2011
@tj tj Added travis support 2e4ed2d
@tj tj travis badge e33a6cf
@tj tj grr script b3751b6
@tj tj Fixed: line-buffered input automatically trimmed. Closes #31 9745551
@tj tj Release 0.4.2 22abcff
Commits on Dec 04, 2011
@tj tj Fixed custom help ordering. Closes #32 78dc4a1
@tj tj Release 0.4.3 0aec641
@tj tj bump 62a74c1
@itay itay Add options for subcommands 2454486
@itay itay Make the subcommand tests a bit more robust ba74d56
@tj tj merged / tweaked 6ccb639
@tj tj fixed ordering again 8f2a305
@tj tj Merge branch 'integration' 901a521
@tj tj Release 0.5.0 f91f203
Commits on Dec 07, 2011
@martypdx martypdx added prompt test and fixed four issues eea372f
@tj tj use trimRight() 6f0558d
@tj tj Merge branch 'integration' 731b4fc
Commits on Dec 16, 2011
@tj tj Fixed password() for recent nodes. Closes #36 c1220dd
Commits on Dec 20, 2011
@tj tj Release 0.5.1 25705d6
Commits on Jan 15, 2012
@tj tj Added default support to .choose(). Closes #41 2beb298
Commits on Jan 17, 2012
@raincole raincole Fixed the choice example 10d4e35
@tj tj Merge pull request #45 from raincole/hotfix/examples
Fixed the choice example
8e26188
Commits on Apr 11, 2012
@tj tj Added quick `.prompt(obj, callback)` support. Closes #49 f2060ff
@tj tj Release 0.6.0 d660ff3
Commits on May 04, 2012
@sebastiendb sebastiendb Issue #48 : Take -version from package.json 9312e10
@sebastiendb sebastiendb Issue #48 : Take -version from package.json 63dc290
Commits on May 09, 2012
@cliffano cliffano Version flag is -V, and not -v, according to https://github.com/visio… aada286
@tj tj Merge pull request #58 from cliffano/patch-1
Fix version flag in help menu
43f75e7
Commits on May 17, 2012
@tj tj Added: append (yes or no) on confirmation b43c270
Commits on Jun 01, 2012
@ryancole ryancole allow node.js v0.7.x a7d5c0a
@tj tj Merge pull request #62 from ryancole/patch-1
allow node.js v0.7.x
2651b4c
@tj tj Merge branch 'master' of github.com:visionmedia/commander.js ef02666
@tj tj Release 0.6.1 df60805
Commits on Jul 03, 2012
@sebastiendb sebastiendb Essai 5f5bd43
@sebastiendb sebastiendb better package.json handling 3bd2e98
@sebastiendb sebastiendb Merge branch 'master' of git://github.com/visionmedia/commander.js in…
…to version
3118871
@focusaurus focusaurus Make description optional and avoid printing "--someoption undefined"…
… in help message.
10f5cb7
@tj tj Merge pull request #69 from focusaurus/patch-1
Make description optional and avoid printing "--someoption undefined" in...
f4fd782
@tj tj Merge pull request #55 from despekiroule/version
Issue #48 : Take -version from package.json
12adc90
Commits on Jul 05, 2012
@tj tj Release 1.0.0 cc966f6
Commits on Jul 07, 2012
@jfhbrook jfhbrook [fix] tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (…
…i.e. process.stdin.setRawMode())
2aac48f
@tj tj Merge pull request #73 from node-migrator-bot/clean
Hi! I fixed some code for you!
7234489
Commits on Aug 03, 2012
@orthlieb orthlieb Fix issue #56
Leftover arguments need to be pushed back onto the args stack. Makes
sure that options don't strip of arguments they shouldn't
d65dabd
@tj tj Merge pull request #77 from orthlieb/master
Fix issue #56 where options parsing strips off arguments that it shouldn't
4f1ddc1
@tj tj fix styling of prev commit 29f289c
@tj tj Release 1.0.1 77a337f
Commits on Aug 04, 2012
@jonrohan jonrohan merging from upstream ce7ffd7
Something went wrong with that request. Please try again.