git @ Cat's Eye Technologies SixtyPical / 652ab1d
Clean up ArgumentParser usage message, add --version argument. Chris Pressey 2 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
00 #!/usr/bin/env python
1
2 """Usage: sixtypical [OPTIONS] FILES
3
4 Analyzes and compiles a Sixtypical program.
5 """
61
72 from os.path import realpath, dirname, join
83 import sys
9186
9287
9388 if __name__ == '__main__':
94 argparser = ArgumentParser(__doc__.strip())
89 argparser = ArgumentParser()
9590
9691 argparser.add_argument(
9792 'filenames', metavar='FILENAME', type=str, nargs='+',
151146 action="store_true",
152147 help="When an error occurs, display a full Python traceback."
153148 )
149 argparser.add_argument(
150 "--version",
151 action="version",
152 version="%(prog)s 0.19"
153 )
154154
155155 options, unknown = argparser.parse_known_args(sys.argv[1:])
156156 remainder = ' '.join(unknown)