2017-05-11 19:21:22 +02:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.abspath('../'))
|
|
|
|
|
|
|
|
import argparse
|
2017-05-11 23:21:04 +02:00
|
|
|
import qubesadmin.dochelpers
|
2017-05-11 19:21:22 +02:00
|
|
|
|
|
|
|
parser = argparse.ArgumentParser(description='prepare new manpage for command')
|
|
|
|
parser.add_argument('command', metavar='COMMAND',
|
|
|
|
help='program\'s command name; this should translate to '
|
2017-05-11 23:21:04 +02:00
|
|
|
'qubesadmin.tools.<command_name>')
|
2017-05-11 19:21:22 +02:00
|
|
|
|
|
|
|
def main():
|
|
|
|
args = parser.parse_args()
|
2017-05-11 23:21:04 +02:00
|
|
|
sys.stdout.write(qubesadmin.dochelpers.prepare_manpage(args.command))
|
2017-05-11 19:21:22 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|