Skip to content

Commit

Permalink
Hide the --package-symlinks flag.
Browse files Browse the repository at this point in the history
Since there's no way to load resources without using the packages/
directory, this flag will introduce a lot of confusing unfixable
breakage. We should un-hide it once there's sufficient SDK support for
locating/loading resources (dart-lang/sdk#23990).

[email protected]

Review URL: https://codereview.chromium.org//1292933003 .
  • Loading branch information
nex3 committed Aug 14, 2015
1 parent 8707131 commit 4cc9aa3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/src/command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PubCommandRunner extends CommandRunner {
argParser.addFlag('with-prejudice', hide: !isAprilFools,
negatable: false, help: 'Execute commands with prejudice.');
argParser.addFlag('package-symlinks',
negatable: true, defaultsTo: true,
negatable: true, defaultsTo: true, hide: true,
help: "Generate packages/ directories when installing packages.");

addCommand(new BuildCommand());
Expand Down
28 changes: 13 additions & 15 deletions test/pub_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,19 @@ main() {
Usage: pub <command> [arguments]
Global options:
-h, --help Print this usage information.
--version Print pub version.
--[no-]trace Print debugging information when an error occurs.
--verbosity Control output verbosity.
[all] Show all output including internal tracing messages.
[error] Show only errors.
[io] Also show IO operations.
[normal] Show errors, warnings, and user messages.
[solver] Show steps during version resolution.
[warning] Show only errors and warnings.
-v, --verbose Shortcut for "--verbosity=all".
--[no-]package-symlinks Generate packages/ directories when installing packages.
(defaults to on)
-h, --help Print this usage information.
--version Print pub version.
--[no-]trace Print debugging information when an error occurs.
--verbosity Control output verbosity.
[all] Show all output including internal tracing messages.
[error] Show only errors.
[io] Also show IO operations.
[normal] Show errors, warnings, and user messages.
[solver] Show steps during version resolution.
[warning] Show only errors and warnings.
-v, --verbose Shortcut for "--verbosity=all".
Available commands:
build Apply transformers to build a package.
Expand Down

0 comments on commit 4cc9aa3

Please sign in to comment.