Commit Graph

70 Commits

Author SHA1 Message Date
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
kevmoo@google.com 7082aea796 pkg/args: adding LICENSE file
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31391 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-27 19:03:22 +00:00
kevmoo@google.com 6809af473b flagging pkg/args and pkg/logging as dev+1
should be publishing with bumped version due to package constraint changes

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31388 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-27 17:20:00 +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
kevmoo@j832.com 4a38412179 pkg/args: updated args dependency on collection_helpers to >= 0.9.1
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30924 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 23:39:26 +00:00
nweiz@google.com 999a2ecc70 Add a [hide] argument to [ArgParser.addFlag].
Also bump the args version to 0.10.0 in preperation for a release.

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30678 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 21:55:39 +00:00
kevmoo@j832.com fabddaabb1 pkg/args: a bunch of test cleanup
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30675 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 19:35:44 +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
dgrove@google.com 18ca7d0036 Re-land r29957 (add versions and constraints for packages and samples), with
SDK constraints bumped from 1.0.0 to 0.8.10+6 .

R=ricow@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29986 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 18:28:22 +00:00
ajohnsen@google.com 61f6c51990 Revert "add versions and constraints for packages and samples"
This is currently blocking us from testing samples.

BUG=
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29960 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 09:09:18 +00:00
jmesserly@google.com 02638c5760 add versions and constraints for packages and samples
- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29957 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 03:27:58 +00:00
whesse@google.com 69205c207c Remove uses of Options from pkg, samples, tests, and third_party directories.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29552 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 15:17:01 +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
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 359d2beb4d Added new style of tests for parser.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24207 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 23:05:42 +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
antonm@google.com 4638137480 Switch from DRT to content shell.
R=kustermann@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23328 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 08:34:52 +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 1d9013517e Moved pkg pubspecs to use dev_dependencies where appropriate
BUG=https://code.google.com/p/dart/issues/detail?id=9309

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20285 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 19:41:10 +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
floitsch@google.com ecce8a6293 Remove deprecated Strings class.
Review URL: https://codereview.chromium.org//12295014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18686 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 13:57:03 +00:00
dgrove@google.com 278d7b0c74 Update documentation links to point to the correct URLs.
Review URL: https://codereview.chromium.org//12252055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18552 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:27:10 +00:00
amouravski@google.com 9cbede1d32 Added documentation links to all of the pkg packages hosted on api.dartlang.org.
Review URL: https://codereview.chromium.org//12218119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18414 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-12 23:38:30 +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
rnystrom@google.com 2dd41b5c83 Split the args tests into a couple of smaller suites.
Review URL: https://codereview.chromium.org//11817027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16882 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:02: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
rnystrom@google.com cef256ecf1 Convert the small packages in pkg to use "package:".
Review URL: https://codereview.chromium.org//11575043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16189 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-15 01:05:35 +00:00
dgrove@google.com 33abe0ef0a Add authors and homepages to packages.
Review URL: https://codereview.chromium.org//11418267

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15601 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 21:16:01 +00:00
ahe@google.com f4ca9548c9 Allow tests to specify a package root.
Use a shared package root if none is specified.

Committed: https://code.google.com/p/dart/source/detail?r=15064

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15070 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 11:35:57 +00:00
ahe@google.com 88a921030d Revert "Allow tests to specify a package root."
Revert "Add dependencies for bots that doesn't build everything."

This reverts r15066 and r15064.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15068 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 10:42:55 +00:00
ahe@google.com 89cc5a2d23 Allow tests to specify a package root.
Use a shared package root if none is specified.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15064 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 09:51:17 +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
gram@google.com 981c4b11df Restructure pkg/unittest and pkg/webdriver to follow the pub conventions.
This means all imports of unittest in our test code had to change to include 'lib' in the path.
While doing that change I changed the library/imports to the new syntax in the affected files.
Review URL: https://codereview.chromium.org//11301046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:09:47 +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