Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add -v/--version command line option.

  • Loading branch information...
commit 9c6ff6468e16b1ba53c3f51d6b0ca95e4f23d152 1 parent 952898e
Marcel Molina authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/twurl/cli.rb
View
8 lib/twurl/cli.rb
@@ -71,6 +71,7 @@ def parse_options(args)
disable_ssl
request_method
help
+ version
end
end
@@ -229,6 +230,13 @@ def help
exit
end
end
+
+ def version
+ on_tail("-v", "--version", "Show version") do
+ CLI.puts Version
+ exit
+ end
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.