Skip to content

Commit

Permalink
forces integers in random input
Browse files Browse the repository at this point in the history
  • Loading branch information
carrot69 committed Jun 28, 2022
1 parent 2f6284f commit b440a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keep-presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def define_custom_seconds():
"If both is selected, the program will do both actions. ")

parser.add_argument(
"-r", "--random", nargs=2,
"-r", "--random", type=int, nargs=2,
help="Usage: two numbers (ex. -r 3 10). "
"Execute actions based on a random interval between start and stop seconds. "
"Note: Overwrites the seconds argument.")
Expand Down

0 comments on commit b440a95

Please sign in to comment.