libbe.command.help

class libbe.command.help.Help(*args, **kwargs)

Print help for given command or topic

>>> import sys
>>> import libbe.bugdir
>>> io = libbe.command.StringInputOutput()
>>> io.stdout = sys.stdout
>>> ui = libbe.command.UserInterface(io=io)
>>> cmd = Help()
>>> ret = ui.run(cmd, args=['help'])
usage: be help [options] [TOPIC]
<BLANKLINE>
Options:
  -h, --help  Print a help message.
<BLANKLINE>
  --complete  Print a list of possible completions.
<BLANKLINE>
<BLANKLINE>
Print help for specified command/topic or list of all commands.

Methods

cleanup
complete
complete_topic
help
run
usage
complete_topic(command, argument, fragment=None)

This Page