From 69d895287e19ababe4bc87499977d45126758b14 Mon Sep 17 00:00:00 2001 From: eeue56 Date: Tue, 8 Mar 2016 03:56:12 +0000 Subject: [PATCH] update readme and docs --- README.md | 4 ++++ elm_deps_check.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 520c3e5..6e67f9c 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,10 @@ python elm_deps_check.py ../NoRedInk/elm-package.json ../NoRedInk/spec/elm/elm-p Sometimes we want to figure out if our elm-package.json contains old deps. +Usage: + +- `--elm-version` if you want to specify a different version of Elm. Defaults to 0.16 + ```bash python elm_deps_upgrade.py elm-package.json diff --git a/elm_deps_check.py b/elm_deps_check.py index 50b33c3..2783476 100755 --- a/elm_deps_check.py +++ b/elm_deps_check.py @@ -49,10 +49,10 @@ def have_matching_versions(top_level_file, spec_file, is_exact=False, quiet=True def main(): - parser = argparse.ArgumentParser(description='Process some integers.') + parser = argparse.ArgumentParser(description='Check deps matching between a parent and a sub') - parser.add_argument('--quiet', '-q', action='store_true', help='don\'t print anything') - parser.add_argument('--exact', '-e', action='store_true', help='these files are exact dependencies') + parser.add_argument('--quiet', '-q', action='store_true', help='don\'t print anything', default=False) + parser.add_argument('--exact', '-e', action='store_true', help='these files are exact dependencies', default=False) parser.add_argument('top_level_file') parser.add_argument('spec_file')