def main(): parser = argparse.ArgumentParser() parser.add_argument('--docs', default='docs') args = parser.parse_args() with open(os.path.join(args.docs, 'CLI-Reference.md'), 'w') as f: print(INTRODUCTION, file=f) print(indent(Commands.help_text(verbose=True, markdown=True)), file=f)
def main(): with open(os.path.join('docs', 'CLI-Reference.md'), 'w') as f: print >> f, INTRODUCTION print >> f, indent(Commands.help_text(True))