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
The current version of the library, given the same rule ('t'), will fail when it encounters the first letter of the parameter that doesn't have a corresponding rule. In this case, possibly 'e'. Additionally, the regex matching for a more complex case in the same vein will fail when any character other than a-z and '-' is encountered, such as a hostname or url. (-hexample.domain.com).
This is complicated by the fact that this is easy to apply to short flags that require a parameter. Optional parameters, however, would require additional checking to see if the current token is a listing of short flags or a short flag with parameter.
The text was updated successfully, but these errors were encountered:
This library cannot parse short options passed without spaces between the flag and the value. For an example, I use cp:
Where '-t' is the short option (to directory).
The current version of the library, given the same rule ('t'), will fail when it encounters the first letter of the parameter that doesn't have a corresponding rule. In this case, possibly 'e'. Additionally, the regex matching for a more complex case in the same vein will fail when any character other than a-z and '-' is encountered, such as a hostname or url. (-hexample.domain.com).
This is complicated by the fact that this is easy to apply to short flags that require a parameter. Optional parameters, however, would require additional checking to see if the current token is a listing of short flags or a short flag with parameter.
The text was updated successfully, but these errors were encountered: