Skip to content

Instantly share code, notes, and snippets.

@bsutton
Last active January 13, 2020 19:52
Show Gist options
  • Select an option

  • Save bsutton/65ef287aabc2825b8d49ffd96851634d to your computer and use it in GitHub Desktop.

Select an option

Save bsutton/65ef287aabc2825b8d49ffd96851634d to your computer and use it in GitHub Desktop.
arguments
#! /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