Support indexing relative to 'last' position (was: Unbounded arity param)
See original GitHub issueIs it possible to use unbounded arity parameter without being the last parameters ? The following code
@Parameters(index = "0", description = "Folder")
private String folder;
@Parameters(index = "1", arity = "1...*", description = "Source paths")
private String [] sources;
@Parameters(index = "2", description = "Destination folder path")
private String destination;
is throwing picocli.CommandLine$MissingParameterException: Missing required parameter: <destination>
when called with MyClass folder source1 source2 source3 destination
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Indexing Reference.pdf - CMOD.wiki
OnDemand includes a complete set of information to help you plan for, ... the first page and the last index value on the...
Read more >Query Expressions - Django documentation
Django supports negation, addition, subtraction, multiplication, division, modulo arithmetic, and the power operator on query expressions, using Python ...
Read more >Width independent functions - verilog - Stack Overflow
E.g. a module that would accept a WIDTH parameter and actual data as an input vector. To do this, I would advise you...
Read more >picocli - a mighty tiny command line interface
The specified path may be relative (to the current directory) or absolute. ... to a command line argument if their index matches the...
Read more >Source code for pyomo.core.base.set
First, the lowest-level (non-abstract) Data object supports infinite sets; ... of the Set") if position > len(self): raise IndexError("Cannot advance past ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for raising this topic. I’ve started to think it may be worth supporting some
index = last
syntax in the future. That would allow something like:The parsing logic for this is not straightforward though so this will be something for a future release.
While this is a nice idea, it turns out this is actually non-trivial to implement. I don’t see myself working on this in the near future. Closing this ticket.