Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created February 10, 2014 23:47
Show Gist options
  • Save BitPuffin/888fe85faab4438925b6 to your computer and use it in GitHub Desktop.
Save BitPuffin/888fe85faab4438925b6 to your computer and use it in GitHub Desktop.
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