Skip to content

Conversation

progval
Copy link
Owner

@progval progval commented May 27, 2025

optional() is greedy, so if someone uses 'nickauth nick add MyNick' and MyNick is also a bot account name, the command fails. This is very confusing.

progval added 2 commits May 27, 2025 21:09
optional() is greedy, so if someone uses 'nickauth nick add MyNick' and MyNick
is also a bot account name, the command fails. This is very confusing.
@jlu5
Copy link
Collaborator

jlu5 commented May 29, 2025

Is there no nice way to preserve the current behaviour? I think the worst case implementation would be to manually count whether we've been passed one or two arguments. Even if it's not so idiomatic, it might be better than making the commands less flexible

@progval
Copy link
Owner Author

progval commented May 29, 2025

good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants