Index: pkg/args/lib/args.dart |
diff --git a/pkg/args/lib/args.dart b/pkg/args/lib/args.dart |
index 6bdcb7e9805e1e54f32ac3fc2ae11d8c44e29e98..463c5919b6fba9bf75361972559cb57507312b03 100644 |
--- a/pkg/args/lib/args.dart |
+++ b/pkg/args/lib/args.dart |
@@ -305,9 +305,14 @@ class ArgParser { |
/** |
* Parses [args], a list of command-line arguments, matches them against the |
* flags and options defined by this parser, and returns the result. |
+ * |
+ * If [continueParsing] is set, the parser will continue parsing even after it |
+ * finds an argument that is not an option. This allows you to specify options |
+ * after your command parameters. |
*/ |
- ArgResults parse(List<String> args) => |
- new Parser(null, this, args.toList()).parse(); |
+ ArgResults parse(List<String> args, {bool continueParsing: false}) => |
+ new Parser(null, this, args.toList()).parse( |
+ continueParsing: continueParsing); |
/** |
* Generates a string displaying usage information for the defined options. |