comparison decoupage/templates.py @ 109:7cb236c32d0b

[templates] --cwd requires no argument
author Jeff Hammel <k0scist@gmail.com>
date Fri, 07 Jul 2017 08:49:54 -0700
parents 6b79c13bb42b
children
comparison
equal deleted inserted replaced
108:1a8a977e7d5d 109:7cb236c32d0b
58 parser.add_argument('template', nargs='?', 58 parser.add_argument('template', nargs='?',
59 help="output this template") 59 help="output this template")
60 parser.add_argument('-o', '--output', dest='output', 60 parser.add_argument('-o', '--output', dest='output',
61 help="output to file or directory or stdout") 61 help="output to file or directory or stdout")
62 parser.add_argument('--cwd', dest='cwd', 62 parser.add_argument('--cwd', dest='cwd',
63 action='store_true', default=False,
63 help="output to current working directory") 64 help="output to current working directory")
64 options = parser.parse_args(args) 65 options = parser.parse_args(args)
65 66
66 # validate options 67 # validate options
67 if options.cwd: 68 if options.cwd: