Created
January 13, 2020 19:51
-
-
Save bsutton/d152d17616dde0e3b6ca352ef047c7f2 to your computer and use it in GitHub Desktop.
arguments
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
| #! /usr/bin/env dshell | |
| import 'package:dshell/dshell.dart'; | |
| void main(List<String> args) { | |
| print('${args.length} were passed'); | |
| int index = 0; | |
| for (var arg in args) | |
| { | |
| print('arg $index = $arg); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment