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
I started to fix this bug, but after looking at the tests realized that this was intentional behavior. I encountered this issue when trying to implement a parser.stored() call with the arg --s3-bucket. Since this is a perfectly reasonable arg name, I think this design decision might warrant reconsideration. I'd be happy to submit a pull request if you agree that it makes sense. Thanks.
@bzdzb from looking at where ARG_NAME_RE is defined, I suspect that this was not actually intentional. Instead of $ARG_INITIAL_CHAR_CLASS+, $ARG_INITIAL_CHAR_CLASS$ARG_CHAR_CLASS* would probably make more sense.
I'm also thinking that it may make sense to require $ARG_INITIAL_CHAR_CLASS after a ..
val url1 by parser.storing(help = "jdbc url. Example: jdbc:postgresql://localhost:5432/db1")
results in:
Exception in thread "main" java.lang.IllegalArgumentException: URL1 is not a valid argument name
Not sure if this is by design or a bug. Changing to the following fixes the issue:
val url_1 by parser.storing(help = "jdbc url. Example: jdbc:postgresql://localhost:5432/db1")
The text was updated successfully, but these errors were encountered: