-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: simplify !with
command argument parsing
#356
Conversation
!with
command argument parsing
should be good to merge now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setattr is woozy, generally not a fan of this pr being in favour of the current logic. open to opinions from other reviewers though
It's a fair point, although I think it's fair to use in such a use-case of dynamically parsing user input like this. The logic is much simpler, the command itself is easier to use imo and it also adds missing support. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
replaced by #640 |
I simplified the parsing, as well as adding some more "implicit" parameters to make stuff more consistent.
I also added support for mania (katu, geki)
In summary, you can now do stuff such as
!with 5x100 2x50
!with 99% 3m
!with 4x100 9m 388x
!with 97.59% 2m 473x +HDDT
!with 5xkatu 3xgeki
Dependent on #526