Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1291)

Unified Diff: lib/args/args.dart

Issue 10854133: Add support for upper case in arguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/lib/args/args_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/args/args.dart
===================================================================
--- lib/args/args.dart (revision 10584)
+++ lib/args/args.dart (working copy)
@@ -187,9 +187,9 @@
* options and flags from them.
*/
class ArgParser {
- static final _SOLO_OPT = const RegExp(@'^-([a-z0-9])$');
- static final _ABBR_OPT = const RegExp(@'^-([a-z0-9]+)(.*)$');
- static final _LONG_OPT = const RegExp(@'^--([a-z\-_0-9]+)(=(.*))?$');
+ static final _SOLO_OPT = const RegExp(@'^-([a-zA-Z0-9])$');
+ static final _ABBR_OPT = const RegExp(@'^-([a-zA-Z0-9]+)(.*)$');
+ static final _LONG_OPT = const RegExp(@'^--([a-zA-Z\-_0-9]+)(=(.*))?$');
final Map<String, _Option> _options;
« no previous file with comments | « no previous file | tests/lib/args/args_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698