Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jessemiller/HamlPy
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemiller committed Mar 6, 2013
2 parents 284faac + 6d95cc7 commit 1204b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hamlpy/hamlpy_watcher.py
Expand Up @@ -46,7 +46,7 @@ def __call__(self, parser, namespace, values, option_string = None):
arg_parser.add_argument('input_dir', help = 'Folder to watch', type = str)
arg_parser.add_argument('output_dir', help = 'Destination folder', type = str, nargs = '?')
arg_parser.add_argument('--tag', help = 'Add self closing tag. eg. --tag macro:endmacro', type = str, nargs = 1, action = StoreNameValueTagPair)
arg_parser.add_argument('--attr-wrapper', dest='attr_wrapper', type=str, choices=('"', "'"), default="'", action='store', help="The character that should wrap element attributes. This defaults to ' (an apostrophe).")
arg_parser.add_argument('--attr-wrapper', dest = 'attr_wrapper', type = str, choices = ('"', "'"), default = "'", action = 'store', help = "The character that should wrap element attributes. This defaults to ' (an apostrophe).")

def watched_extension(extension):
"""Return True if the given extension is one of the watched extensions"""
Expand Down Expand Up @@ -74,7 +74,7 @@ def watch_folder():
if args.extension:
Options.OUTPUT_EXT = args.extension

if args.tags:
if getattr(args, 'tags', False):
hamlpynodes.TagNode.self_closing.update(args.tags)

if args.input_extension:
Expand Down

0 comments on commit 1204b3a

Please sign in to comment.