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
Is it possible to get the parsed, expanded @-file arguments after parsing is complete? In ParseResult, I see there is a tentativeMatch which does have the correct arguments parsed out, but it doesn't seem to be exposed externally. The originalArgs object still has the un-expanded @-file arguments like @/path/to/file.args
Basically given binary --arg @/path/to/file --other_arg @/path/to/second/file, is it possible to get binary --arg expanded_file --other_arg expanded_file? Either as a raw string, or a list of parsed tokens (preferred).
The use-case is to be able to log the actual arguments even if you invoke the binary with a file, and support replayability with a copy/pastable repro command.
The text was updated successfully, but these errors were encountered:
Hi, with the current version of picocli this feature does not exist.
We could add a method ParseResult.expandedArgs() that returns the argument list that was actually processed by the parser (so after @file expansion).
Will you be able to provide a pull request for this?
Is it possible to get the parsed, expanded @-file arguments after parsing is complete? In
ParseResult
, I see there is atentativeMatch
which does have the correct arguments parsed out, but it doesn't seem to be exposed externally. TheoriginalArgs
object still has the un-expanded @-file arguments like@/path/to/file.args
Basically given
binary --arg @/path/to/file --other_arg @/path/to/second/file
, is it possible to getbinary --arg expanded_file --other_arg expanded_file
? Either as a raw string, or a list of parsed tokens (preferred).The use-case is to be able to log the actual arguments even if you invoke the binary with a file, and support replayability with a copy/pastable repro command.
The text was updated successfully, but these errors were encountered: