Make the parsing of command line getopt-compliant.
These commits make Why3 follow the getopt standard way of parsing command-line options.
Benefits:
-
-Lfooand-L fooboth work. - Short options can be concatenated, e.g.,
why3 wc -tfa. - Arguments can be made optional, e.g.,
--smoke-detectorinstead of--smoke-detector=top. - The
getoptway is standard!
Downsides:
- Long options with arguments now need a
=sign, e.g.,--library foois no longer recognized;--library=foo(or-L foo) should be used instead. Note that the--library=foostyle was already recognized before, so compatibility can be ensured.
Edited by Guillaume Melquiond