Skip to content

Commit

Permalink
Gdel: preciser defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Nov 27, 2022
1 parent b17c1ae commit 0916adf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GooseSLURM/cli/Gdel.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def main():
gstat.parse_cli_args(cli_args)

if len(gstat.args["jobs"]) == 0:
cli_args += ["-U", "--status", "R", "--status", "PD"]
if len(gstat.args["user"]) == 0:
cli_args += ["-U"]
if gstat.args["status"] is None:
cli_args += ["--status", "R", "--status", "PD"]
gstat.parse_cli_args(cli_args)

gstat.read()
Expand Down

0 comments on commit 0916adf

Please sign in to comment.