Created
January 21, 2015 03:30
-
-
Save jballanc/d05f11b76cfb6276be1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns foo.core) | |
(defn -main [& args] | |
(println "Passed in 'args' are:" args)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> lein foo bar baz | |
Passed in 'args' are: (bar baz) | |
> lein run -m foo.core bar baz | |
Passed in 'args' are: (bar baz) | |
> lein foo --help | |
foo is an alias, expands to ["run" "-m" "foo.core"] | |
> lein run -m foo.core --help | |
Passed in 'args' are: (--help) | |
> lein foo -- --help | |
Passed in 'args' are: (-- --help) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject foo "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.6.0"]] | |
:aliases {"foo" ["run" "-m" "foo.core"]}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment