a weblog about programming and open source, mostly.
Saturday, December 10, 2011
Getting the command line arguments in Dart (vm)
Another hidden gem in the Dart library today, can you tell I am trying to write a command line thingy? Reading the command line options is really easy.
void main() {
Options opts = new Options();
for (String arg in opts.arguments) {
print(arg);
}
}