summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Hobson2009-08-23 19:56:30 -0700
committerZack Hobson2009-08-23 19:56:30 -0700
commit0582befffbfffd65d14c295874c720fba8d08aca (patch)
tree8789f383319bf810364081a0bf1bc4740b2c576d
parentc2bdbfa4df2d4dcb4914605105cdabaedc77da2b (diff)
downloadhcl-0582befffbfffd65d14c295874c720fba8d08aca.tar.bz2
Reinstate the --version option.
-rw-r--r--CHANGELOG3
-rw-r--r--lib/hcl/app.rb3
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 268bebf..e0c984a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,8 @@
= Recent Changes in HCl
+* Reverted: Adding note fails when task is started without notes, reopens #26.
+* Reinstate the --version option
+
== v0.2.2 Sun Aug 9 11:16:34 2009 -0700
* Support installation via rip, closes #27.
diff --git a/lib/hcl/app.rb b/lib/hcl/app.rb
index a3f3153..702ac66 100644
--- a/lib/hcl/app.rb
+++ b/lib/hcl/app.rb
@@ -30,6 +30,8 @@ class Net::HTTP
end
module HCl
+ VERSION = "0.2.2"
+
class App
include HCl::Utility
include HCl::Commands
@@ -85,6 +87,7 @@ module HCl
def process_args *args
Trollop::options(args) do
stop_on Commands.instance_methods
+ version "HCl version #{VERSION}"
banner <<-EOM
HCl is a command-line client for manipulating Harvest time sheets.