Commit Graph

29 Commits

Author SHA1 Message Date
kathyw@google.com bc2a4fae5b Copyedit pass over args library description; fixed some example code
R=mcampione@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27388 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 15:35:01 +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
rnystrom@google.com e7f3c51a64 Allow passing in an existing ArgParser for a command.
R=gram@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22973 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 23:20:27 +00:00
sethladd@google.com 8fd2c2e5ea add installation instructions to pkg packages
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21770 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 20:51:10 +00:00
ajohnsen@google.com 044f0d02eb Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21338 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:34:52 +00:00
kevmoo@j832.com 519fa6c224 pkg/args Option should be more strict about names and abbreviations
Should not allow: space, \t, \r, \n, single- and double-quote, slashes
Should not allow empty string
Should not allow '-' as the beginning character

name should not be allowed to be null (although it's fine for abbreviation)

BUG=https://code.google.com/p/dart/issues/detail?id=8965

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20040 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 18:00:21 +00:00
floitsch@google.com 65718c56df Rename XMatching to XWhere.
For example firstMatching -> firstWhere.

BUG= http://dartbug.com/8664
BUG= http://dartbug.com/8337

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19880 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:34:49 +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
lrn@google.com 6b4f4b1bab Change new List(n) to return fixed length list.
Deprecate List.fixedLength, add List.filled.

Make Iterable.toList and List.from take "growable" argument,
defaulting to false.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19112 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 08:45:04 +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
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
ajohnsen@google.com ab69873a42 Make RegExp constructor non-const.
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com ec9fee9858 "Reverting 14829-14832"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com 8dc3edd7ce Make RegExp's constructor non-const.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +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
floitsch@google.com 2e778387b3 Make getKeys, getValues getters (keys, values).
Review URL: https://codereview.chromium.org//11267018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14093 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 19:22:11 +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
regis@google.com 8c3cfbb381 Second round of cleanups for new optional parameter semantics.
Review URL: https://codereview.chromium.org//11194025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13759 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 20:58:19 +00:00
regis@google.com adb534674c Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
Review URL: https://codereview.chromium.org//11090016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
rnystrom@google.com 2bd10c28b4 Apply patch from https://codereview.chromium.org/10967042/.
Review URL: https://codereview.chromium.org//10985035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12885 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 23:40:24 +00:00
lrn@google.com a1faa6f135 Change IllegalArgumentException to ArgumentError.
Review URL: https://codereview.chromium.org//10989013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
danrubel@google.com 9b89419e88 migrate raw string to new syntax in pkg
Review URL: https://codereview.chromium.org//10961061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12754 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 19:41:42 +00:00
rnystrom@google.com a5c8f9f2da Commit patch: https://codereview.chromium.org/10914320/
Thanks, Matt!

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12603 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 21:17:49 +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