-
-
Save BitPuffin/888fe85faab4438925b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import parseopt2 | |
| var command: string | |
| for kind, key, val in getOpt(): | |
| case kind | |
| of cmdArgument: | |
| command = key | |
| of cmdLongOption, cmdShortOption, cmdEnd: | |
| discard nil | |
| # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment