Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit c249aecc187f0b32aadc7980da0ee3853bd9ca9d 1 parent bf0b51c
@mtyaka authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  README.md
  2. +3 −3 src/leiningen/oneoff.clj
View
2  README.md
@@ -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
View
6 src/leiningen/oneoff.clj
@@ -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,7 +132,7 @@ 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."
@@ -140,7 +140,7 @@ See http://github.com/mtyaka/lein-oneoff for more information."
(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]
Please sign in to comment.
Something went wrong with that request. Please try again.