-
-
Save Vanethos/c838c9115c106186b2bd647204ab90b8 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
// Run the app like this: dart args.dart 1 test | |
void main(List<String> arguments) { | |
print(arguments); | |
assert(arguments.length == 2); | |
assert(int.parse(arguments[0]) == 1); | |
assert(arguments[1] == 'test'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment