Index: utils/pub/pub.dart |
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart |
index b6f196d830f6fdbf269698b85cfc8bd149f0729b..6db58c53619d6dffd6234365c233f14e12b4a355 100644 |
--- a/utils/pub/pub.dart |
+++ b/utils/pub/pub.dart |
@@ -52,6 +52,7 @@ ArgParser get pubArgParser { |
parser.addFlag('version', negatable: false, |
help: 'Prints the version of Pub'); |
parser.addFlag('trace', help: 'Prints a stack trace when an error occurs'); |
+ parser.addFlag('self-link', help: 'Temporary flag, do not use.'); |
return parser; |
} |
@@ -74,6 +75,12 @@ main() { |
return; |
} |
+ // TODO(rnystrom): Get rid of this flag (and make the default be true) when |
+ // #4820 is fixed and the Editor can handle recursive symlinks. |
+ if (globalOptions['self-link']) { |
+ Entrypoint.installSelfLink = true; |
+ } |
+ |
// TODO(nweiz): Have a fallback for this this out automatically once 1145 is |
// fixed. |
var sdkDir = Platform.environment['DART_SDK']; |