Remko Popma

Results 381 comments of Remko Popma

You get use the `System.console().readPassword()` API in your application. With picocli this would look something like this (JCommander should be fairly similar): ```java import picocli.CommandLine; import picocli.CommandLine.Command; import picocli.CommandLine.Option; @Command(name...

You may be interested in picocli. It uses `@Option` for named options and `@Parameters` for positional parameters, where both can be strongly typed: https://picocli.info/#_positional_parameters

Picocli [handles this correctly](https://picocli.info/#_stdout_or_stderr) out of the box: when the user specified invalid input, the error message and usage help should be printed to stderr, but when the user requests...

@erickj If this is still an issue for you, take a look at https://picocli.info/#_dependency_injection

I am also looking to use `shasum` to verify releases with a command like this: ``` find . -type f -name "*.sha512" -exec shasum -c {} -a 512 \; ```...

I believe the problem is in the test. Yes, the test fails, but not because default values are not being reset. When I run the above test, I get this...

Okay that is interesting! That does sound like it may be a Micronaut issue, but I will try to find time to take a look. Can you do me a...

Great, thank you! It looks like picocli thinks the initial value is `"option"` after the first test. This may be a picocli issue after all... I will look into if...

The issue is related to the `@Singleton` annotation on the `PicocliBugTest.Command` class. This makes the Micronaut factory cache and reuse that instance for all tests. However, for each test, a...

@Pochatkin did this resolve the issue?