cli icon indicating copy to clipboard operation
cli copied to clipboard

optional arguments

Open suntong opened this issue 8 years ago • 1 comments

The GNU getopt supports optional arguments:

A long option normally begins with '--' followed by the long option name. If the option has a required argument, it may be written directly after the long option name, separated by '=', or as the next argument (i.e. separated by whitespace on the command line). If the option has an optional argument, it must be written directly after the long option name, separated by '=', if present.

Would cli support optional arguments as well? If true, please make it clear of the following three stages:

  1. not specified
  2. specified but no argument
  3. specified and with argument

Thanks

suntong avatar Apr 09 '17 20:04 suntong

optional arguments supported but 0/1/2 stages not reported. I will add API later.

mkideal avatar Apr 15 '17 05:04 mkideal