1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 01:16:14 +01:00

Return argument to do_man back

Revert a part of b3c5204, the do_main has to have at least one
argument, unless following exception will appear

osc.cmdln.CmdlnError: incorrect argcount for do_man(): takes 1, must
take 2 for 'argv' signature or 3+ for 'opts' signature

Signed-off-by: Petr Uzel <puzel@suse.cz>
Signed-off-by: Michal Vyskocil <mvyskocil@suse.cz>
This commit is contained in:
Petr Uzel 2010-12-22 13:29:52 +01:00 committed by Michal Vyskocil
parent 70b3c3c435
commit 197c10f661
2 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ class RawCmdln(cmd.Cmd):
do_help.aliases = ["?"]
def do_man(self):
def do_man(self, argv):
"""${cmd_name}: generates a man page
usage:

View File

@ -32,7 +32,7 @@ class build_osc(distutils.command.build.build, object):
# (this would break builds in environments like the obs)
#osccli.main(argv = ['osc','man'])
osccli.optparser = osccli.get_optparser()
osccli.do_man()
osccli.do_man(None)
outfile.close()
def run(self):