Commit Graph

21 Commits

Author SHA1 Message Date
nweiz@google.com 3eca362877 Add an ArgResults.original getter.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//796593004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42301 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-11 21:38:13 +00:00
srawlins@google.com adce7e2d39 Swap getUsage() for get usage in args package
BUG= https://code.google.com/p/dart/issues/detail?id=12536
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//631123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40966 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 17:56:16 +00:00
rnystrom@google.com ff23b25a81 Add .wasParsed() to ArgResults.
BUG=https://code.google.com/p/dart/issues/detail?id=16227
R=alanknight@google.com, nweiz@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//383913003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38348 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-17 21:35:45 +00:00
rnystrom@google.com c922ca1059 Allow defining a help string for an option's parameter value.
BUG= https://code.google.com/p/dart/issues/detail?id=5201
R=nweiz@google.com

Review URL: https://codereview.chromium.org//363083002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38047 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 23:16:17 +00:00
rnystrom@google.com 8b8c5fbfa8 Modernize the docs for args.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//271183002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36072 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 21:28:45 +00:00
rnystrom@google.com 5dd0a26730 Move allowTrailingOptions into ArgParser.
R=brianwilkerson@google.com, jmesserly@google.com, nweiz@google.com

Review URL: https://codereview.chromium.org//260963007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35837 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-06 23:25:59 +00:00
rnystrom@google.com 11cd2e3d5f Ignore hidden options when calculating usage columns.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//203273013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34140 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-19 21:13:55 +00:00
lrn@google.com 047b32681d Create associated packages for the dart:collection and dart:async libs.
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//113883002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31260 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 11:57:56 +00:00
lrn@google.com 33ec174278 Combine unmodifiable_collection package into collection_helpers.
Avoids some duplicated code, and makes everything much simpler.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//70073003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30402 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 12:11:24 +00:00
nweiz@google.com c35bde1feb Add support for hidden options to pkg/args.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23913009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27853 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 21:01:36 +00:00
kevmoo@j832.com 87a80f6a32 pkg/args: expose immutable collections
BUG= https://code.google.com/p/dart/issues/detail?id=10127
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//19810004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25347 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 16:56:13 +00:00
amouravski@google.com 2e5ee49022 Added the continueParsing option to ArgParser.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//12545013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24366 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 20:55:13 +00:00
amouravski@google.com 948fdd1e43 Moved the Option class to its own file in anticipation of working on it.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//16802002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24107 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 19:15:15 +00:00
lrn@google.com f4300b84a2 Make List.from and Iterable.toList default to not growable.
Review URL: https://codereview.chromium.org//12401002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19391 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 14:55:40 +00:00
lrn@google.com fa78a93635 Make arg parser return growable list of rest arguments.
This allows the user to remove them when he's done, which is what
is currently being done.

Review URL: https://codereview.chromium.org//12316155

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19119 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 09:48:17 +00:00
sigmund@google.com 16eba207b6 Fix use of stringbuffer in pkg/args
Review URL: https://codereview.chromium.org//12335035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18902 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 18:21:18 +00:00
rnystrom@google.com 2394891f64 Add command support to args.
Review URL: https://codereview.chromium.org//11819068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16988 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:03:21 +00:00
gram@google.com afd6a79416 Update library syntax in pkg files.
Review URL: https://codereview.chromium.org//11362139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14646 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 18:52:40 +00:00
ahe@google.com 6254729761 Revert "Parts must start with 'part of'" and "Attempt to fix VM build"
This reverts r13961 and r13963.

Review URL: https://codereview.chromium.org//11233061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13967 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 14:24:04 +00:00
scheglov@google.com 50b5b6e1a8 Parts must start with 'part of'
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13961 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:20:50 +00:00
rnystrom@google.com e11b3b82fe Make args package follow new layout.
Review URL: https://codereview.chromium.org//10919249

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12284 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 21:31:42 +00:00