Skip to content

Instantly share code, notes, and snippets.

@jballanc jballanc/core.clj
Created Jan 21, 2015

Embed
What would you like to do?
(ns foo.core)
(defn -main [& args]
(println "Passed in 'args' are:" args))
> 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)
(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
You can’t perform that action at this time.