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