Open Brucedayton opened 4 weeks ago
The simple answer is short options should be a single character. This is not currently treated as an immediate error, but may be in the future.
From the README:
Each option can have a short flag (single character) and a long name
And listed as explicitly deprecated:
Short option flags like
-ws
were never supported, but the old README did not make this clear. The README now states that short options are a single character.
(Thanks for the clear description.)
Can short option with single character report the same error like issue 2?
No, an option with a required option argument looks for a value with or without a space. So these are equivalent:
util -a AAA
util -aAAA
This is a widely supported syntax, although I do consider it an advanced syntax. When you don't know about it, the lack of an error for an unlucky typo can be surprising.
Thank you for the detailed explanation
Steps to reproduce:
Actual result:
Can short option with single character report the same error like issue 2?