Created
November 16, 2019 08:06
-
-
Save onatcipli/61979fcf37ef8dca7cabf2bca656bb41 to your computer and use it in GitHub Desktop.
for an Medium article codding step
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
import 'package:args/args.dart'; | |
main(List<String> arguments) { | |
final ArgParser argParser = ArgParser(); | |
argParser.addOption("name", abbr: "n"); | |
ArgResults results = argParser.parse(arguments); | |
if (results['name'] != null) { | |
print('First executable that only print the given name ' + results['name']); | |
} else { | |
print('pub global run flutter_generate --name YourName'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment