@@ -68,7 +68,7 @@ export default class PublishAction extends BaseRushAction {
6868 this . _targetBranch = this . defineStringParameter ( {
6969 parameterLongName : '--target-branch' ,
7070 parameterShortName : '-b' ,
71- key : 'BRANCH' ,
71+ argumentName : 'BRANCH' ,
7272 description :
7373 'If this flag is specified, applied changes and deleted change requests will be' +
7474 'committed and merged into the target branch.'
@@ -93,22 +93,22 @@ export default class PublishAction extends BaseRushAction {
9393 this . _registryUrl = this . defineStringParameter ( {
9494 parameterLongName : '--registry' ,
9595 parameterShortName : '-r' ,
96- key : 'REGISTRY' ,
96+ argumentName : 'REGISTRY' ,
9797 description :
9898 `Publishes to a specified NPM registry. If this is specified, it will prevent the current commit will not be ` +
9999 'tagged.'
100100 } ) ;
101101 this . _npmAuthToken = this . defineStringParameter ( {
102102 parameterLongName : '--npm-auth-token' ,
103103 parameterShortName : '-n' ,
104- key : 'TOKEN' ,
104+ argumentName : 'TOKEN' ,
105105 description :
106106 'Provide the default scope NPM auth token to be passed into npm publish for global package publishing.'
107107 } ) ;
108108 this . _npmTag = this . defineStringParameter ( {
109109 parameterLongName : '--tag' ,
110110 parameterShortName : '-t' ,
111- key : 'TAG' ,
111+ argumentName : 'TAG' ,
112112 description :
113113 `The tag option to pass to npm publish. By default NPM will publish using the 'latest' tag, even if ` +
114114 `the package is older than the current latest, so in publishing workflows for older releases, providing ` +
@@ -124,7 +124,7 @@ export default class PublishAction extends BaseRushAction {
124124 } ) ;
125125 this . _releaseFolder = this . defineStringParameter ( {
126126 parameterLongName : '--release-folder' ,
127- key : 'RELEASEFOLDER ' ,
127+ argumentName : 'FOLDER ' ,
128128 description :
129129 `This parameter is used with --pack parameter to provide customized location for the tarballs instead of ` +
130130 `the default value. `
@@ -139,20 +139,18 @@ export default class PublishAction extends BaseRushAction {
139139 } ) ;
140140 this . _versionPolicy = this . defineStringParameter ( {
141141 parameterLongName : '--version-policy' ,
142- parameterShortName : '-vp' ,
143- key : 'VERSIONPOLICY' ,
142+ argumentName : 'POLICY' ,
144143 description : 'Version policy name. Only projects with this version policy will be published if used ' +
145144 'with --include-all.'
146145 } ) ;
147146 this . _prereleaseName = this . defineStringParameter ( {
148147 parameterLongName : '--prerelease-name' ,
149- parameterShortName : '-pn' ,
150- key : 'NAME' ,
148+ argumentName : 'NAME' ,
151149 description : 'Bump up to a prerelease version with the provided prerelease name. Cannot be used with --suffix'
152150 } ) ;
153151 this . _suffix = this . defineStringParameter ( {
154152 parameterLongName : '--suffix' ,
155- key : 'SUFFIX' ,
153+ argumentName : 'SUFFIX' ,
156154 description : 'Append a suffix to all changed versions. Cannot be used with --prerelease-name.'
157155 } ) ;
158156 this . _force = this . defineFlagParameter ( {
0 commit comments