File tree Expand file tree Collapse file tree 10 files changed +10
-5
lines changed
test/testdata/goldens/help_test Expand file tree Collapse file tree 10 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ For example (follow the same format including spaces):
167
167
defaultsTo: true ,
168
168
help:
169
169
'Also update dependencies in `example/` after modifying pubspec.yaml in the root package (if it exists).' ,
170
- hide: true ,
171
170
);
172
171
}
173
172
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ class DowngradeCommand extends PubCommand {
48
48
'example' ,
49
49
defaultsTo: true ,
50
50
help: 'Also run in `example/` (if it exists).' ,
51
- hide: true ,
52
51
);
53
52
54
53
argParser.addOption (
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ class GetCommand extends PubCommand {
56
56
'example' ,
57
57
defaultsTo: true ,
58
58
help: 'Also run in `example/` (if it exists).' ,
59
- hide: true ,
60
59
);
61
60
62
61
argParser.addOption (
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ To remove a dependency override of a package prefix the package name with
59
59
'example' ,
60
60
defaultsTo: true ,
61
61
help: 'Also update dependencies in `example/` (if it exists).' ,
62
- hide: true ,
63
62
);
64
63
65
64
argParser.addOption (
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ class UpgradeCommand extends PubCommand {
89
89
'example' ,
90
90
defaultsTo: true ,
91
91
help: 'Also run in `example/` (if it exists).' ,
92
- hide: true ,
93
92
);
94
93
95
94
argParser.addOption (
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ Usage: pub add [options] [<section>:]<package>[:descriptor] [<section>:]<package
43
43
-n, --dry-run Report what dependencies would change but don't change any.
44
44
--[no-]precompile Build executables in immediate dependencies.
45
45
-C, --directory=<dir> Run this in the directory <dir>.
46
+ --[no-]example Also update dependencies in `example/` after modifying pubspec.yaml in the root package (if it exists).
47
+ (defaults to on)
46
48
47
49
Run "pub help" to see global options.
48
50
See https://dart.dev/tools/pub/cmd/pub-add for detailed documentation.
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ Usage: pub downgrade [dependencies...]
10
10
-h, --help Print this usage information.
11
11
--[no-]offline Use cached packages instead of accessing the network.
12
12
-n, --dry-run Report what dependencies would change but don't change any.
13
+ --[no-]example Also run in `example/` (if it exists).
14
+ (defaults to on)
13
15
-C, --directory=<dir> Run this in the directory <dir>.
14
16
--tighten Updates lower bounds in pubspec.yaml to match the resolved version.
15
17
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Usage: pub get
12
12
has changed.
13
13
Useful for CI or deploying to production.
14
14
--[no-]precompile Build executables in immediate dependencies.
15
+ --[no-]example Also run in `example/` (if it exists).
16
+ (defaults to on)
15
17
-C, --directory=<dir> Run this in the directory <dir>.
16
18
17
19
Run "pub help" to see global options.
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ Usage: pub remove <package1> [<package2>...]
16
16
--[no-]offline Use cached packages instead of accessing the network.
17
17
-n, --dry-run Report what dependencies would change but don't change any.
18
18
--[no-]precompile Precompile executables in immediate dependencies.
19
+ --[no-]example Also update dependencies in `example/` (if it exists).
20
+ (defaults to on)
19
21
-C, --directory=<dir> Run this in the directory <dir>.
20
22
21
23
Run "pub help" to see global options.
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Usage: pub upgrade [dependencies...]
12
12
--tighten Updates lower bounds in pubspec.yaml to match the resolved version.
13
13
--unlock-transitive Also upgrades the transitive dependencies of the listed [dependencies]
14
14
--major-versions Upgrades packages to their latest resolvable versions, and updates pubspec.yaml.
15
+ --[no-]example Also run in `example/` (if it exists).
16
+ (defaults to on)
15
17
-C, --directory=<dir> Run this in the directory <dir>.
16
18
17
19
Run "pub help" to see global options.
You can’t perform that action at this time.
0 commit comments