mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-15 03:23:47 +01:00
commands/show: change man section to 7
Change the man page section from 1 7. "Misc. information" is more appropriate for plugin documentation than "Executable commands".
This commit is contained in:
committed by
Marc Bonnici
parent
b1b2131b0c
commit
887cdcc411
@ -69,7 +69,7 @@ class ShowCommand(Command):
|
|||||||
|
|
||||||
# Correctly format the title and page number of the man page
|
# Correctly format the title and page number of the man page
|
||||||
title, body = output.split('\n', 1)
|
title, body = output.split('\n', 1)
|
||||||
title = '.TH {}{} 1'.format(kind, plugin_name)
|
title = '.TH {}{} 7'.format(kind, plugin_name)
|
||||||
output = '\n'.join([title, body])
|
output = '\n'.join([title, body])
|
||||||
|
|
||||||
call('echo "{}" | man -l -'.format(escape_double_quotes(output)), shell=True)
|
call('echo "{}" | man -l -'.format(escape_double_quotes(output)), shell=True)
|
||||||
|
Reference in New Issue
Block a user