Skip to content

Commit

Permalink
added -R to the mutually exclusive group, otherwise it doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Dec 30, 2012
1 parent 6f4c002 commit 633ad43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions py/polar2grid/polar2grid/viirs2awips.py
Expand Up @@ -280,8 +280,6 @@ def main(argv = sys.argv[1:]):
help="Processing is sequential instead of one process per kind of band")
parser.add_argument('--num-procs', dest="num_procs", default=1,
help="Specify number of processes that can be used to run ll2cr/fornav calls in parallel")
parser.add_argument('-R', dest='remove_prev', default=False, action='store_true',
help="Delete any files that may conflict with future processing. Processing is not done with this flag.")
parser.add_argument('--no-pseudo', dest='create_pseudo', default=True, action='store_false',
help="Don't create pseudo bands")
parser.add_argument('--new-dnb', dest='new_dnb', default=False, action='store_true',
Expand All @@ -306,6 +304,8 @@ def main(argv = sys.argv[1:]):
help="List of one or more hdf files")
group.add_argument('-d', dest='data_dir', nargs="?",
help="Data directory to look for input data files")
group.add_argument('-R', dest='remove_prev', default=False, action='store_true',
help="Delete any files that may conflict with future processing. Processing is not done with this flag.")

args = parser.parse_args(args=argv)

Expand Down
4 changes: 2 additions & 2 deletions py/polar2grid/polar2grid/viirs2binary.py
Expand Up @@ -283,8 +283,6 @@ def main(argv = sys.argv[1:]):
help="Processing is sequential instead of one process per kind of band")
parser.add_argument('--num-procs', dest="num_procs", default=1,
help="Specify number of processes that can be used to run ll2cr/fornav calls in parallel")
parser.add_argument('-R', dest='remove_prev', default=False, action='store_true',
help="Delete any files that may conflict with future processing. Processing is not done with this flag.")
parser.add_argument('--no-pseudo', dest='create_pseudo', default=True, action='store_false',
help="Don't create pseudo bands")
parser.add_argument('--new-dnb', dest='new_dnb', default=False, action='store_true',
Expand All @@ -310,6 +308,8 @@ def main(argv = sys.argv[1:]):
help="List of one or more hdf files")
group.add_argument('-d', dest='data_dir', nargs="?",
help="Data directory to look for input data files")
group.add_argument('-R', dest='remove_prev', default=False, action='store_true',
help="Delete any files that may conflict with future processing. Processing is not done with this flag.")

args = parser.parse_args(args=argv)

Expand Down
4 changes: 2 additions & 2 deletions py/polar2grid/polar2grid/viirs2gtiff.py
Expand Up @@ -288,8 +288,6 @@ def main(argv = sys.argv[1:]):
help="Processing is sequential instead of one process per kind of band")
parser.add_argument('--num-procs', dest="num_procs", default=1,
help="Specify number of processes that can be used to run ll2cr/fornav calls in parallel")
parser.add_argument('-R', dest='remove_prev', default=False, action='store_true',
help="Delete any files that may conflict with future processing. Processing is not done with this flag.")
parser.add_argument('--no-pseudo', dest='create_pseudo', default=True, action='store_false',
help="Don't create pseudo bands")
parser.add_argument('--new-dnb', dest='new_dnb', default=False, action='store_true',
Expand All @@ -315,6 +313,8 @@ def main(argv = sys.argv[1:]):
help="List of one or more hdf files")
group.add_argument('-d', dest='data_dir', nargs="?",
help="Data directory to look for input data files")
group.add_argument('-R', dest='remove_prev', default=False, action='store_true',
help="Delete any files that may conflict with future processing. Processing is not done with this flag.")

args = parser.parse_args(args=argv)

Expand Down

0 comments on commit 633ad43

Please sign in to comment.