Browse Source

Add short form of --force-metadata, -F

tags/nilmtools-1.4.8^0
Jim Paris 8 years ago
parent
commit
9c711300a2
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      nilmtools/decimate_auto.py
  2. +1
    -1
      nilmtools/filter.py

+ 2
- 2
nilmtools/decimate_auto.py View File

@@ -21,9 +21,9 @@ def main(argv = None):
parser.add_argument("-u", "--url", action="store",
default="http://localhost/nilmdb/",
help="NilmDB server URL (default: %(default)s)")
parser.add_argument('-f', '--factor', action='store', default=4, type=int,
parser.add_argument("-f", "--factor", action="store", default=4, type=int,
help='Decimation factor (default: %(default)s)')
parser.add_argument("--force-metadata", action="store_true",
parser.add_argument("-F", "--force-metadata", action="store_true",
default = False,
help="Force metadata changes if the dest "
"doesn't match")


+ 1
- 1
nilmtools/filter.py View File

@@ -206,7 +206,7 @@ class Filter(object):
default = False,
help="Just print intervals that would be "
"processed")
group.add_argument("--force-metadata", action="store_true",
group.add_argument("-F", "--force-metadata", action="store_true",
default = False,
help="Force metadata changes if the dest "
"doesn't match")


Loading…
Cancel
Save