Show command name in header of help text.
This commit is contained in:
parent
013e79cd6b
commit
75b75a1d55
1 changed files with 6 additions and 1 deletions
|
@ -518,8 +518,13 @@ def make_helptext(
|
|||
|
||||
# PUT IT ALL TOGETHER
|
||||
|
||||
if command_name is None:
|
||||
header_name = program_name
|
||||
else:
|
||||
header_name = f'{program_name} {command_name}'
|
||||
|
||||
parts = [
|
||||
niceprints.equals_header(program_name) if do_headline else None,
|
||||
niceprints.equals_header(header_name) if do_headline else None,
|
||||
program_description,
|
||||
main_invocation,
|
||||
'\n\n'.join(argument_helps),
|
||||
|
|
Loading…
Reference in a new issue