core-admin/doc/skel-manpage.py
Wojtek Porczyk 142521317c qubes: Documentation for qubes.tools
And first documentation for qubes.tools.qvm_ls.
2015-06-29 17:39:28 +02:00

21 lines
507 B
Python
Executable File

#!/usr/bin/python
import os
import sys
sys.path.insert(0, os.path.abspath('../'))
import argparse
import qubes.dochelpers
parser = argparse.ArgumentParser(description='prepare new manpage for command')
parser.add_argument('command', metavar='COMMAND',
help='program\'s command name; this should translate to '
'qubes.tools.<command_name>')
def main():
args = parser.parse_args()
sys.stdout.write(qubes.dochelpers.prepare_manpage(args.command))
if __name__ == '__main__':
main()