Skip to content

Commit 4007e0d

Browse files
committed
Improve the command-line help phrasing for the "--to ." feature.
1 parent 82b3e6b commit 4007e0d

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

apps/rush-lib/src/cli/scriptActions/BulkScriptAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ export class BulkScriptAction extends BaseScriptAction {
167167
parameterLongName: '--to',
168168
parameterShortName: '-t',
169169
argumentName: 'PROJECT1',
170-
description: 'Run command in the specified project and all of its dependencies. To include ' +
171-
'the project in the working directory, include "."'
170+
description: 'Run command in the specified project and all of its dependencies. "." can be used as shorthand ' +
171+
'to specify the project in the current working directory.'
172172
});
173173
this._fromVersionPolicy = this.defineStringListParameter({
174174
parameterLongName: '--from-version-policy',
@@ -186,7 +186,7 @@ export class BulkScriptAction extends BaseScriptAction {
186186
parameterShortName: '-f',
187187
argumentName: 'PROJECT2',
188188
description: 'Run command in all projects that directly or indirectly depend on the specified project. ' +
189-
' To include the project in the working directory, include "."'
189+
'"." can be used as shorthand to specify the project in the current working directory.'
190190
});
191191
this._verboseParameter = this.defineFlagParameter({
192192
parameterLongName: '--verbose',

apps/rush-lib/src/cli/test/__snapshots__/CommandLineHelp.test.ts.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ Optional arguments:
124124
CPU cores.
125125
-t PROJECT1, --to PROJECT1
126126
Run command in the specified project and all of its
127-
dependencies. To include the project in the working
128-
directory, include \\".\\"
127+
dependencies. \\".\\" can be used as shorthand to specify
128+
the project in the current working directory.
129129
--from-version-policy VERSION_POLICY_NAME
130130
Run command in all projects with the specified
131131
version policy and all projects that directly or
@@ -136,9 +136,9 @@ Optional arguments:
136136
version policy and all of their dependencies
137137
-f PROJECT2, --from PROJECT2
138138
Run command in all projects that directly or
139-
indirectly depend on the specified project. To
140-
include the project in the working directory, include
141-
\\".\\"
139+
indirectly depend on the specified project. \\".\\" can
140+
be used as shorthand to specify the project in the
141+
current working directory.
142142
-v, --verbose Display the logs during the build, rather than just
143143
displaying the build status summary
144144
-o, --changed-projects-only
@@ -253,8 +253,8 @@ Optional arguments:
253253
CPU cores.
254254
-t PROJECT1, --to PROJECT1
255255
Run command in the specified project and all of its
256-
dependencies. To include the project in the working
257-
directory, include \\".\\"
256+
dependencies. \\".\\" can be used as shorthand to specify
257+
the project in the current working directory.
258258
--from-version-policy VERSION_POLICY_NAME
259259
Run command in all projects with the specified
260260
version policy and all projects that directly or
@@ -265,9 +265,9 @@ Optional arguments:
265265
version policy and all of their dependencies
266266
-f PROJECT2, --from PROJECT2
267267
Run command in all projects that directly or
268-
indirectly depend on the specified project. To
269-
include the project in the working directory, include
270-
\\".\\"
268+
indirectly depend on the specified project. \\".\\" can
269+
be used as shorthand to specify the project in the
270+
current working directory.
271271
-v, --verbose Display the logs during the build, rather than just
272272
displaying the build status summary
273273
--locale {en-us,fr-fr,es-es,zh-cn}
@@ -506,8 +506,8 @@ Optional arguments:
506506
CPU cores.
507507
-t PROJECT1, --to PROJECT1
508508
Run command in the specified project and all of its
509-
dependencies. To include the project in the working
510-
directory, include \\".\\"
509+
dependencies. \\".\\" can be used as shorthand to specify
510+
the project in the current working directory.
511511
--from-version-policy VERSION_POLICY_NAME
512512
Run command in all projects with the specified
513513
version policy and all projects that directly or
@@ -518,9 +518,9 @@ Optional arguments:
518518
version policy and all of their dependencies
519519
-f PROJECT2, --from PROJECT2
520520
Run command in all projects that directly or
521-
indirectly depend on the specified project. To
522-
include the project in the working directory, include
523-
\\".\\"
521+
indirectly depend on the specified project. \\".\\" can
522+
be used as shorthand to specify the project in the
523+
current working directory.
524524
-v, --verbose Display the logs during the build, rather than just
525525
displaying the build status summary
526526
-s, --ship Perform a production build, including minification

0 commit comments

Comments
 (0)