Skip to content

Commit

Permalink
support '-x' to ignore file paths on the hupper cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Feb 16, 2019
1 parent 267a034 commit 80726f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hupper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument("-m", dest="module", required=True)
parser.add_argument("-w", dest="watch", action="append")
parser.add_argument("-x", dest="ignore", action="append")
parser.add_argument("-v", dest="verbose", action='store_true')
parser.add_argument("-q", dest="quiet", action='store_true')

Expand All @@ -27,6 +28,7 @@ def main():
reloader = start_reloader(
"hupper.cli.main",
verbose=level,
ignore_files=args.ignore,
)

sys.argv[1:] = unknown_args
Expand Down

0 comments on commit 80726f6

Please sign in to comment.