From 763d3562d938ec54db30c89c1e574c3c40e35a93 Mon Sep 17 00:00:00 2001 From: mde Date: Fri, 27 May 2011 22:53:03 -0700 Subject: [PATCH] Fixed usage. --- lib/program.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/program.js b/lib/program.js index 194c2d16..6f1b9012 100644 --- a/lib/program.js +++ b/lib/program.js @@ -6,13 +6,13 @@ var parseargs = require('../lib/parseargs') , die; optsReg = [ - { full: 'directory' - , abbr: 'C' + { full: 'jakefile' + , abbr: 'f' , preempts: false , expectValue: true } -, { full: 'jakefile' - , abbr: 'f' +, { full: 'directory' + , abbr: 'C' , preempts: false , expectValue: true } @@ -49,15 +49,15 @@ usage = '' + '********************************************************************************\n' + 'If no flags are given, Jake looks for a Jakefile or Jakefile.js in the current directory.\n' + '********************************************************************************\n' - + '{Usage}: jake [options] target (commands/options ...)\n' + + '{Usage}: jake [options ...] [env variables ...] target\n' + '\n' + '{Options}:\n' - + ' -f, --jakefile FILE Use FILE as the Jakefile\n' - + ' -C, --directory DIRECTORY Change to DIRECTORY before running tasks.\n' - + ' -T, --tasks Display the tasks, with descriptions, then exit.\n' - + ' -t, --trace Enable full backtrace.\n' - + ' -h, --help Outputs help information\n' - + ' -V, --version Outputs Jake version\n' + + ' -f, --jakefile FILE Use FILE as the Jakefile\n' + + ' -C, --directory DIRECTORY Change to DIRECTORY before running tasks.\n' + + ' -T, --tasks Display the tasks, with descriptions, then exit.\n' + + ' -t, --trace Enable full backtrace.\n' + + ' -h, --help Outputs help information\n' + + ' -V, --version Outputs Jake version\n' + ''; Program = function () {