Lakshminarayana R Kammath

Results 5 comments of Lakshminarayana R Kammath

so, the second case you explained by making argument as positional argument arg[0] would point to -raw or raw? and arg[1] onwards i can treat as the input raw bytes...

I need some way to parse a normal command vs a raw command passed For e.g i have same application accepting another command like ./app -command [some command name] [sub...

Sorry .. I messed up again I meant , I want to have two options in my app ./app --command [main command][subcommand1] - This one i have already implemented ./app...

std::vector args{}; app.add_option("-c, —command", args, "request command")->required(); std::vector rawCmd; app.add_option("-r, —raw", rawCmd, "Send a RAW request and print response"); Coding like this throws "Too many positional arguments with unlimited expected...

Yes. This would need to updated as per python3 coding guidelines