Usage
Add library to project:
dart pub add argenius
Parse arguments with global argenius instance:
import 'package:argenius/argenius.dart'; void main(Listargs) { argenius.parse(args); print('Named arguments: ${argenius.named}'); print('Ordered arguments: ${argenius.ordered}'); }
Run application with arguments:
dart example/gif_demo.dart argument1 --argumentWithValue1=value1 argumentClear --argumentWithValue2 value2 clearArgumentThree
... and you can start working with collected arguments
Named arguments: {argumentWithValue1: value1, argumentWithValue2: value2} Ordered arguments: [argument1, argumentClear, clearArgumentThree]