Last active
January 13, 2020 19:52
-
-
Save bsutton/65ef287aabc2825b8d49ffd96851634d 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 'dart:io'; | |
| 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); | |
| } | |
| exit(1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment