Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix showing version. #3

Merged
merged 1 commit into from

2 participants

@okuryu

Please review this one. Currently, showing like following.

$ yeti -v
0.2.1pre
$ yeti --version
usage: /usr/local/bin/yeti [--version | -v] [--server | -s] [--port=<n>] [--hub=<url>] [--help]
 [--] [<HTML files>]
No files specified. To launch the Yeti server, specify --server.
@reid reid merged commit 2f8579c into yui:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 14, 2012
  1. @okuryu

    Fix showing version.

    okuryu authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cli.js
View
2  lib/cli.js
@@ -304,7 +304,7 @@ exports.route = function (argv) {
runBatch(options);
} else if (options.server) {
startServer(options);
- } else if (options.argv.original[0] === "-v") {
+ } else if (options.version || options.argv.original[0] === "-v") {
puts(meta.version);
} else if (options.help) {
puts(usage);
Something went wrong with that request. Please try again.