We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide API that allows applications to add an Exit Status section to the usage help message.
Exit Status
Something like this:
Map<String, String> map = new LinkedHashMap<>(); map.put("0", "Program terminated normally"); map.put("1", "Invalid user input"); CommandLine cmd = new CommandLine(new MyApp()); cmd.setExitCodeUsageSection("Exit Codes%n", map);
Alternative name: setExitStatusHelp, setExitCodeHelpSection. See other comment.
setExitStatusHelp
setExitCodeHelpSection
Alternative for creating a map from strings:
List<String> keyValues = Arrays.asList( "0:successful termination", "64:invalid input", "70:internal error"); Map<String, String> result = keyValues.stream() .collect(Collectors.toMap( s -> s.split(":", 1)[0], s -> s.split(":", 1)[1], (x, y) -> x, LinkedHashMap::new));
The text was updated successfully, but these errors were encountered:
[#678] Exit Status section in usage help message
82a4b79
418670e
No branches or pull requests
Provide API that allows applications to add an
Exit Status
section to the usage help message.Something like this:
Alternative name:
setExitStatusHelp
,setExitCodeHelpSection
. See other comment.Alternative for creating a map from strings:
The text was updated successfully, but these errors were encountered: