Open fzyzcjy opened 2 years ago
Interesting idea; I believe that @kevmoo may at one time have authored something like this.
Something like this could also be layered on top of the existing package:args - args
wouldn't have to support it directly.
See here! https://pub.dev/packages/build_cli
@devoncarew @kevmoo Thank you! But seems that it does not have commands support (like what I show in my post) yet...
I made it with a macro: https://pub.dev/packages/args_macro
Hi thanks for this helpful library! However, it is quite boilerplate to repeat code like:
Since args package is like the Python
argparse
package, I am hoping it can be enhanced just like how https://typer.tiangolo.com/ Typer does.In short, the ideal API may be: