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
The implementation of argument files (argfiles) fails when using Clikt library version 5.0 or higher. The application throws an error:
got unexpected extra argument (@src/test/resources/cliargs.arg)
This issue occurs when trying to parse arguments from a file. The feature works correctly with Clikt versions below 5.0. The bug can be reproduced easily by switching to Clikt version 5.0 or higher and making a minor adjustment to the import statement.
Steps to Reproduce:
Use Clikt library version 5.0 or higher.
Provide an argument file (e.g., @src/test/resources/cliargs.arg).
Update the import statement if necessary to match Clikt 5.0 syntax.
Run the application.
Expected Behavior:
The argument file should be parsed correctly, as it works with Clikt versions below 5.0.
Actual Behavior:
The application throws an error indicating an unexpected extra argument.
Environment:
Clikt version: 5.0 or higher
Operating System: [Specify OS]
Java/Kotlin version: [Specify version if relevant]
I can't reproduce that problem. Argfiles work fine for me from the command line, and all the argfile unit tests pass. How are you trying to run your code?
The implementation of argument files (argfiles) fails when using Clikt library version 5.0 or higher. The application throws an error:
got unexpected extra argument (@src/test/resources/cliargs.arg)
This issue occurs when trying to parse arguments from a file. The feature works correctly with Clikt versions below 5.0. The bug can be reproduced easily by switching to Clikt version 5.0 or higher and making a minor adjustment to the import statement.
Steps to Reproduce:
Expected Behavior:
The argument file should be parsed correctly, as it works with Clikt versions below 5.0.
Actual Behavior:
The application throws an error indicating an unexpected extra argument.
Environment:
Documentation: https://ajalt.github.io/clikt/advanced/#command-line-argument-files-argfiles
Attachments:
The text was updated successfully, but these errors were encountered: