Skip to content

Commit

Permalink
move default handling to the parser
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Klein <[email protected]>
  • Loading branch information
Apfelholz and dennisklein authored Oct 30, 2024
1 parent 513c83b commit 0464d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
description='Generates a .txt file that contains n lines of sleep() statements within the specified range'
)

parser.add_argument('-n', type=int, help='Number of lines to generate')
parser.add_argument('-t', help='Range for sleep times, formatted as lower-upper')
parser.add_argument('-n', type=int, default=100, help='Number of lines to generate')
parser.add_argument('-t', default='0.5-5', help='Range for sleep times, formatted as lower-upper')

# Initialisieren der Grenzen und Argumente
args = parser.parse_args()
Expand Down

0 comments on commit 0464d1b

Please sign in to comment.