Permalink
Browse files

change CLI arg shortname for --date from -d to -e

  • Loading branch information...
1 parent 0db85e1 commit 87272eecd42e5e030ad9ca706ffeec8e29506635 @kumarshantanu committed Sep 24, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/clj_liquibase/cli.clj
  2. +1 −1 test/clj_liquibase/test_cli.clj
@@ -281,7 +281,7 @@ For help on individual command, append with `--help`, e.g.:
["Changelog var name to apply rollback on" :with-arg :changelog :c]
["How many Changesets to rollback" :opt-arg :chs-count :n]
["Which tag to rollback to" :opt-arg :tag :g]
- ["Rollback ISO-date (yyyy-MM-dd'T'HH:mm:ss)" :opt-arg :date :d]
+ ["Rollback ISO-date (yyyy-MM-dd'T'HH:mm:ss)" :opt-arg :date :e]
["Contexts (comma separated)" :opt-arg :contexts :t]
["Only generate SQL, do not commit" :no-arg :sql-only :s]))
@@ -90,7 +90,7 @@
(let [p {:datasource :foo}
a {:date "2011-02-26" :changelog "x" :datasource :foo}]
(is (= a (ll/parse-rollback-args p "--date=2011-02-26" "-cx")) "--date")
- (is (= a (ll/parse-rollback-args p "-d2011-02-26" "-cx")) "-d"))
+ (is (= a (ll/parse-rollback-args p "-e2011-02-26" "-cx")) "-e"))
(let [p {:datasource :foo}
a {:contexts "a,b" :changelog "x" :datasource :foo}]
(is (= a (ll/parse-rollback-args p "--contexts=a,b" "-cx")) "--contexts")

0 comments on commit 87272ee

Please sign in to comment.