Permalink
Browse files

Change -c option to -cp to match the leiningen alias.

  • Loading branch information...
1 parent bf0b51c commit c249aecc187f0b32aadc7980da0ee3853bd9ca9d @mtyaka committed Nov 30, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +3 −3 src/leiningen/oneoff.clj
View
@@ -95,7 +95,7 @@ lein-oneoff offers an equivalent to leiningen's built-in `classpath`
task which prints the project's classpath for one-off scripts:
$ lein oneoff --classpath example.clj
- $ lein oneoff -c example.clj
+ $ lein oneoff -cp example.clj
## Installation
@@ -98,7 +98,7 @@ for a one-off project."
(defn print-usage []
(abort "Usage: lein oneoff <command> <file>
<command> can be one of: --exec, --repl, --classpath, --swank.
- Short forms (-e, -r, -c, -s) may be used instead.
+ Short forms (-e, -r, -cp, -s) may be used instead.
If <command> is omitted, --exec is assumed."))
(defn execute-script [script & args]
@@ -132,15 +132,15 @@ proper leiningen project feels like overkill.
Syntax: lein oneoff <command> <file>
<command> can be one of: --exec, --repl, --classpath, --swank.
- Short forms (-e, -r, -c, -s) may be used instead.
+ Short forms (-e, -r, -cp, -s) may be used instead.
If <command> is omitted, --exec is assumed.
See http://github.com/mtyaka/lein-oneoff for more information."
([cmd script & args]
(case cmd
("--exec" "-e") (apply execute-script script args)
("--repl" "-r") (start-repl-server script)
- ("--classpath" "-c") (print-classpath script)
+ ("--classpath" "-cp") (print-classpath script)
("--swank" "-s") (apply start-swank-server script args)
(apply oneoff "--exec" cmd script args)))
([script]

0 comments on commit c249aec

Please sign in to comment.