Skip to content

Commit

Permalink
Prefer --ttl to -d
Browse files Browse the repository at this point in the history
  • Loading branch information
zwimer committed Sep 24, 2024
1 parent 79da8f4 commit e9c820b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delayed_rm/delayed_rm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import os


__version__ = "2.8.2"
__version__ = "2.9.0"


#
Expand Down Expand Up @@ -239,7 +239,7 @@ def main(prog: str, *args: str) -> bool:
base: str = os.path.basename(prog)
parser = argparse.ArgumentParser(prog=base)
parser.add_argument("--version", action="version", version=f"{base} {__version__}")
parser.add_argument("-d", "--delay", type=int, default=900, help="The deletion delay in seconds")
parser.add_argument("--delay", "--ttl", type=int, default=900, help="The deletion delay in seconds")
parser.add_argument(
"--log", action="store_true", help=f"Show {base}'s log files; may not be used with other arguments"
)
Expand Down

0 comments on commit e9c820b

Please sign in to comment.