You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When providing a *, keyword argument in a command function definition, the library is supposed to make it a "greedy" argument, in that any content unconsumed goes into that variable. Right now, this does not happen.
Expected behavior !echo foo bar should respond with foo bar, however, the too many arguments exception is raised
Additional context
Using "quotes" gets around this issue, so the issue may simply just be the command parser being too strict when counting arguments and prematurely raising an error.
The text was updated successfully, but these errors were encountered:
This is now fixed in fix/argument-parsing, but be warned, there has not been extensive testing. There are possible regressions relating to optional arguments, positional arguments, argument typing, and even argument parsing. If anyone tests this out, please let me know how it worked out for you ("works for me" is just as valuable as "it didnt work for me")
Describe the bug
When providing a
*, keyword
argument in a command function definition, the library is supposed to make it a "greedy" argument, in that any content unconsumed goes into that variable. Right now, this does not happen.To Reproduce
Run this simple example:
Expected behavior
!echo foo bar
should respond withfoo bar
, however, the too many arguments exception is raisedAdditional context
Using "quotes" gets around this issue, so the issue may simply just be the command parser being too strict when counting arguments and prematurely raising an error.
The text was updated successfully, but these errors were encountered: