Re:Maybe We Should Stop Creating Inscrutable CLIs
by dwheeler on Wednesday August 21, 2019 @05:16PM
(#20761917)
Parsing long opts is trivial; just determine if the string exactly matches. E.g., "--version" only matches "--version". Short opts is what takes slightly more effort, because you have to accept both "-ld" and "-l -d". We already handle the "hard" case, we just need to support the easy case.
[ Parent
| on HN ]
There are no comments on this comment yet.