subcommands
aep opened this issue · 2 comments
aep commented
thanks for making a malloc-free arg parser that has a sane api.
any chance we could add subcommands?
thething subcommand -xyz
cofyc commented
you need to implement this by yourself and it should not be hard. Take the first argument as the name of the sub-command and pass the rest arguments to it. in each sub-command, you can use argparse
to parse the arguments.
aep commented
yep doing that now. its not as good as what i'm porting from (rust's clap) but i understand adding this to argparse is a bit too much.
thanks