I'm trying to make an interactive cli using Picocli, and want to have some options appear after a(n) action/requirement has been completed. Is there a way I can do this without using the CommandSpec?
Option to be shown before
@Option(names = {"-c","--chooseDevice"}, description = {"Choose Devices"})
private boolean chooseDevice;
--
some code that will initialize a device
--
Option to be show after
@Options(names = {,"-d", "--deviceCommand", description = "some device command")
private boolean deviceCommand;
Output should be
//before choosing device
-c --chooseDevice "Choose Devices"
//after choosing device
-c --chooseDevice "Choose Devices"
-d --deviceCommand "some device command"