quentin.py (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import markdown2 import sys import argparse parser = argparse.ArgumentParser(description='A simple and mnml static site generator.') parser.add_argument('action', choices=['new'], help='Create a new project.') parser.add_argument('path', nargs='*') if len(sys.argv) == 1: parser.print_help() sys.exit(1) args = parser.parse_args() print(args) |