Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For the case where there is only one function in the CLI #3

Open
jkroso opened this issue Jun 21, 2017 · 1 comment
Open

For the case where there is only one function in the CLI #3

jkroso opened this issue Jun 21, 2017 · 1 comment

Comments

@jkroso
Copy link

jkroso commented Jun 21, 2017

"Your Doc String"
@CLI (message::String, times::Integer=3; color::Symbol=:normal)

times < 0 && throw(ArgumentError("cannot repeat negative times"))
for i in 1:times
  print_with_color(color, message)
end
@ylxdzsw
Copy link
Owner

ylxdzsw commented Jun 21, 2017

Thanks. That's a nice feature when one just need a ARGS parser for a runnable script with minimum notations. I can try to implement it when got time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants