コード例 #1
0
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)
コード例 #2
0
def main():
    with open(os.path.join('docs', 'CLI-Reference.md'), 'w') as f:
        print >> f, INTRODUCTION
        print >> f, indent(Commands.help_text(True))