mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 16:35:49 +02:00
[PR #72] Cleaning up unused options and converting to argparse #116
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/72
Author: @atomicmaster
Created: 12/18/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (2)
2a2b458Replacing manual arg parsing with argparse. Arguments are split into sections, session types are handled, you get a nicely formatted help with -h or --help, as expected, all options also have short versions, such as -y for --year and default values. The year default value defaults to the current year based on date.today().cfa61aeCleaning up the --chart option. It is never used and is not implemented beyond the run_arcade_replay function definition. On the off-chance that there was some reflection happening and it was indeed somehow being used, I also tested if it did anything, it did nothing. And it was being checked inside main(), which is well outside the main argument parsing section, which is either how it got forgotten in the first place, or just a poor decision. Either way, if it's something that is going to be implemented it just needs to be added to the argparse section.📊 Changes
2 files changed (+40 additions, -30 deletions)
View changed files
📝
main.py(+39 -29)📝
src/arcade_replay.py(+1 -1)📄 Description
Cleaned up the --chart option:
Replaced argument parsing with argparse:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.