You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flag.sh: Add ability parse combined short flags #6
Should be parsed as 4 separate flags, not one whole bfzs.
I'm thinking I add a function to iterate through each character somehow and if they don't recognize one of the characters as a flag or it wasn't a single hyphen flag, then we error out.
Activity
nhooyr commentedon Nov 14, 2022
Maybe
flag.shshould be changed to usegetoptsin combination. Perhaps long flags could be supported by a separate optstring.This would also solve parsing of flags like
-oargwhere there is no separator between the flag and the argument.