@@ -171,7 +171,7 @@ def _add_general_options(self):
171
171
general_grp = self .add_argument_group (_ ('General {prog} options' .format (
172
172
prog = dnf .util .MAIN_PROG_UPPER )))
173
173
general_grp .add_argument ("-c" , "--config" , dest = "config_file_path" ,
174
- default = None , metavar = '[config file] ' ,
174
+ default = None , metavar = 'CONFIG_FILE ' ,
175
175
help = _ ("config file location" ))
176
176
general_grp .add_argument ("-q" , "--quiet" , dest = "quiet" ,
177
177
action = "store_true" , default = None ,
@@ -182,7 +182,7 @@ def _add_general_options(self):
182
182
help = _ ("show {prog} version and exit" ).format (
183
183
prog = dnf .util .MAIN_PROG_UPPER ))
184
184
general_grp .add_argument ("--installroot" , help = _ ("set install root" ),
185
- metavar = '[path ]' )
185
+ metavar = 'PATH ]' )
186
186
general_grp .add_argument ("--nodocs" , action = "store_const" , const = ['nodocs' ], dest = 'tsflags' ,
187
187
help = _ ("do not install documentations" ))
188
188
general_grp .add_argument ("--noplugins" , action = "store_false" ,
@@ -191,11 +191,11 @@ def _add_general_options(self):
191
191
general_grp .add_argument ("--enableplugin" , dest = "enableplugin" ,
192
192
default = [], action = self ._SplitCallback ,
193
193
help = _ ("enable plugins by name" ),
194
- metavar = '[plugin ]' )
194
+ metavar = 'PLUGIN ]' )
195
195
general_grp .add_argument ("--disableplugin" , dest = "disableplugin" ,
196
196
default = [], action = self ._SplitCallback ,
197
197
help = _ ("disable plugins by name" ),
198
- metavar = '[plugin ]' )
198
+ metavar = 'PLUGIN ]' )
199
199
general_grp .add_argument ("--releasever" , default = None ,
200
200
help = _ ("override the value of $releasever"
201
201
" in config and repo files" ))
@@ -229,10 +229,10 @@ def _add_general_options(self):
229
229
help = _ ("run entirely from system cache, "
230
230
"don't update cache" ))
231
231
general_grp .add_argument ("-R" , "--randomwait" , dest = "sleeptime" , type = int ,
232
- default = None , metavar = '[minutes] ' ,
232
+ default = None , metavar = 'MINUTES ' ,
233
233
help = _ ("maximum command wait time" ))
234
234
general_grp .add_argument ("-d" , "--debuglevel" , dest = "debuglevel" ,
235
- metavar = '[debug level] ' , default = None ,
235
+ metavar = 'DEBUG_LEVEL ' , default = None ,
236
236
help = _ ("debugging output level" ), type = int )
237
237
general_grp .add_argument ("--debugsolver" ,
238
238
action = "store_true" , default = None ,
@@ -252,28 +252,28 @@ def _add_general_options(self):
252
252
"repoquery" ).format (prog = dnf .util .MAIN_PROG ))
253
253
general_grp .add_argument ("--rpmverbosity" , default = None ,
254
254
help = _ ("debugging output level for rpm" ),
255
- metavar = '[debug level name] ' )
255
+ metavar = 'DEBUG_LEVEL_NAME ' )
256
256
general_grp .add_argument ("-y" , "--assumeyes" , action = "store_true" ,
257
257
default = None , help = _ ("automatically answer yes"
258
258
" for all questions" ))
259
259
general_grp .add_argument ("--assumeno" , action = "store_true" ,
260
260
default = None , help = _ ("automatically answer no"
261
261
" for all questions" ))
262
262
general_grp .add_argument ("--enablerepo" , action = self ._RepoCallback ,
263
- dest = 'repos_ed' , default = [], metavar = '[repo] ' ,
263
+ dest = 'repos_ed' , default = [], metavar = 'REPO ' ,
264
264
help = _ ("Temporarily enable repositories for the purpose "
265
265
"of the current dnf command. Accepts an id, a "
266
266
"comma-separated list of ids, or a glob of ids. "
267
267
"This option can be specified multiple times." ))
268
268
repo_group = general_grp .add_mutually_exclusive_group ()
269
269
repo_group .add_argument ("--disablerepo" , action = self ._RepoCallback ,
270
- dest = 'repos_ed' , default = [], metavar = '[repo] ' ,
270
+ dest = 'repos_ed' , default = [], metavar = 'REPO ' ,
271
271
help = _ ("Temporarily disable active repositories for the "
272
272
"purpose of the current dnf command. Accepts an id, "
273
273
"a comma-separated list of ids, or a glob of ids. "
274
274
"This option can be specified multiple times, but "
275
275
"is mutually exclusive with `--repo`." ))
276
- repo_group .add_argument ('--repo' , '--repoid' , metavar = '[repo] ' , dest = 'repo' ,
276
+ repo_group .add_argument ('--repo' , '--repoid' , metavar = 'REPO ' , dest = 'repo' ,
277
277
action = self ._SplitCallback , default = [],
278
278
help = _ ('enable just specific repositories by an id or a glob, '
279
279
'can be specified multiple times' ))
@@ -289,15 +289,15 @@ def _add_general_options(self):
289
289
general_grp .add_argument ("-x" , "--exclude" , "--excludepkgs" , default = [],
290
290
dest = 'excludepkgs' , action = self ._SplitCallback ,
291
291
help = _ ("exclude packages by name or glob" ),
292
- metavar = '[package] ' )
292
+ metavar = 'PACKAGE ' )
293
293
general_grp .add_argument ("--disableexcludes" , "--disableexcludepkgs" ,
294
294
default = [], dest = "disable_excludes" ,
295
295
action = self ._SplitCallback ,
296
296
help = _ ("disable excludepkgs" ),
297
- metavar = '[repo] ' )
297
+ metavar = '{all, main, REPOID} ' )
298
298
general_grp .add_argument ("--repofrompath" , default = {},
299
299
action = self ._SplitExtendDictCallback ,
300
- metavar = '[repo,path] ' ,
300
+ metavar = 'REPO,PATH ' ,
301
301
help = _ ("label and path to an additional repository to use (same "
302
302
"path as in a baseurl), can be specified multiple times." ))
303
303
general_grp .add_argument ("--noautoremove" , action = "store_false" ,
0 commit comments