diff --git a/pymacro/pymacro b/pymacro/pymacro index eedda9b..e6a4a57 100755 --- a/pymacro/pymacro +++ b/pymacro/pymacro @@ -11,6 +11,8 @@ def get_args(): parser = argparse.ArgumentParser() parser.add_argument("-m", "--macros", default=["macros"], action="append", help="Extra files where macros are stored") + parser.add_argument("-q", "--quiet", default=False, action="store_true", + help="Don't output to stdout") parser.add_argument("input", help="The file to be processed") parser.add_argument("output", help="The location of the output") return parser.parse_args() diff --git a/pymacro/readme.md b/pymacro/readme.md index 5743ce5..9f61f1a 100644 --- a/pymacro/readme.md +++ b/pymacro/readme.md @@ -14,7 +14,7 @@ optional arguments: -h, --help show this help message and exit -m MACROS, --macros MACROS Extra files where macros are stored - -s, --silent Do not print processed file + -q, --quiet Do not print processed file ``` diff --git a/pymacro/test.sh b/pymacro/test.sh index bb3375d..90410ed 100755 --- a/pymacro/test.sh +++ b/pymacro/test.sh @@ -1,4 +1,4 @@ #/usr/bin/env sh -./pymacro -s tests/test_input tests/test_actual_output +./pymacro -q tests/test_input tests/test_actual_output git diff tests/test_actual_output tests/test_expected_output