just icon indicating copy to clipboard operation
just copied to clipboard

Multiple optional parameters, specifying only one

Open TheNamlessGuy opened this issue 2 years ago • 1 comments

Now I may be blind, but I can't find anything about this in the documentation, nor any earlier issues.

Given the following example:

test foo='foo' bar='bar':
    @echo "foo: '{{foo}}', bar: '{{bar}}'"

just test produces foo: 'foo', bar: 'bar', as expected. just test 1 2 produces foo: '1', bar: '2', as expected. just bar=2 test produces an error, as expected. just test bar=2 produces foo: 'bar=2', bar: 'bar', which I guess is working as intended.

But how would a user specify the bar variable, and the bar variable only?

If it's not a currently supported feature, I'd like to propose the last in the list above for the solution, as to line up with Setting Variables from the Command Line, make, and any programming language with named parameters.

TheNamlessGuy avatar Jul 25 '24 12:07 TheNamlessGuy

Never mind, found https://github.com/casey/just/issues/605

TheNamlessGuy avatar Jul 25 '24 12:07 TheNamlessGuy