Created
September 12, 2010 14:33
-
-
Save rofl0r/576154 to your computer and use it in GitHub Desktop.
This file contains 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 text/Opts | |
import structs/ArrayList | |
main: func(args : ArrayList<String>) { | |
opts := Opts new(args) | |
if (opts set?("g")) println("g set") | |
if (opts set?("v")) println("v set") | |
if (opts set?("vv")) println("vv set") | |
if (opts set?("dce")) println("dce set") | |
if (opts set?("gc")) println("gc set to " + opts get("gc")) | |
"other options:" println() | |
opts args each(|arg| arg println()) | |
"=========" println() | |
opts toString() println() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./Optstest -g -v -x -dce anal.ooc -gc=dynamic