Say I have a command that takes flags and arguments, like this:mycommand --foo bar arg1 arg2(The foo flag has a value of bar.)But what if the foo flag can optionally be supplied with no argument?mycommand --foo arg1 arg2How do I prevent arg1 being considered the value for the foo flag?
Separating command arguments from flags
shell;command line;arguments