noprompt / frak

Transform collections of strings into regular expressions.
1.13k stars 39 forks source link

Allow for command line usage. #4

Closed bayleedev closed 11 years ago

bayleedev commented 11 years ago
-> lein run arg1 arg2
"arg[12]"
-> lein run colour color
"colo(?:ur|r)"
noprompt commented 11 years ago

@BlaineSch Thanks. Could you move -main into a new namespace called frak.cli? I have another branch called cli where this is in the works for ClojureScript but hadn't got to Clojure just yet.

bayleedev commented 11 years ago

Updated @noprompt

noprompt commented 11 years ago

@BlaineSch FYI, you can use (System/exit status-code) in -main to make sure the program properly exits when using lein run .... See here. Thanks again for your contribution.

bayleedev commented 11 years ago

Thanks for the tip @noprompt !!