Skip to content

Commit

Permalink
fixed suppress typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brevans committed May 8, 2020
1 parent de7b003 commit 6565b9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dSQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def format_range(jobnums):
metavar="dir",
nargs=1,
help="Directory to save the job_jobid_status.tsv file to. Defaults to working directory.")
optional_dsq.add_argument("--supress-stats-file",
optional_dsq.add_argument("--suppress-stats-file",
action="store_true",
help="Don't save job stats to job_jobid_status.tsv")
optional_dsq.add_argument("--stdout",
Expand Down Expand Up @@ -189,8 +189,8 @@ def format_range(jobnums):
job_info["slurm_args"]["--output"] = "dsq-{job_file_no_ext}-%A_%{array_fmt_width}a-%N.out".format(**job_info)

# set ouput directory
if args.supress_stats_file:
job_info["status_dir_arg"] = "--supress-stats-file"
if args.suppress_stats_file:
job_info["status_dir_arg"] = "--suppress-stats-file"
else:
if args.status_dir is not None:
job_info["status_dir"] = path.abspath(args.status_dir[0])
Expand Down
6 changes: 3 additions & 3 deletions dSQBatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def exec_job(job_str):
""".format(__version__)

parser = argparse.ArgumentParser(description=desc,
usage='%(prog)s --job-file jobfile.txt [--supress-stats-file | --status-dir dir/ ]',
usage='%(prog)s --job-file jobfile.txt [--suppress-stats-file | --status-dir dir/ ]',
formatter_class=argparse.RawTextHelpFormatter,
prog=sys.argv[0])
parser.add_argument('-v','--version',
Expand All @@ -38,7 +38,7 @@ def exec_job(job_str):
parser.add_argument('--job-file',
nargs=1,
help='Job file, one job per line (not your job submission script).')
parser.add_argument("--supress-stats-file",
parser.add_argument("--suppress-stats-file",
action="store_true",
help="Don't save job stats to job_jobid_status.tsv")
parser.add_argument("--status-dir",
Expand All @@ -51,7 +51,7 @@ def exec_job(job_str):
job_file = args.job_file[0]

print_stats_file = True
if args.supress_stats_file:
if args.suppress_stats_file:
print_stats_file = False
else:
status_outdir = args.status_dir[0]
Expand Down

0 comments on commit 6565b9b

Please sign in to comment.