clii icon indicating copy to clipboard operation
clii copied to clipboard

default command.

Open bj0 opened this issue 4 years ago • 2 comments

I find my most common use case (previously with click) was to add cli options to a single-command script. Is it possible to make clii run a default command (or the only existing command)? That way you don't have to type "python main.py main --args" to run your main function.

bj0 avatar Aug 06 '20 21:08 bj0

Does the main decorator not do the trick for you?

jamesob avatar Aug 29 '20 19:08 jamesob

Oh, I didn't know about that one, thanks!

bj0 avatar Aug 29 '20 22:08 bj0