Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Advanced Apache Commons CLI usage

Header Image

  1. Using groups
    • This article covers how to use Apache Commons CLI to group command line options together and specify group membership, making command line tools easier to manage and understand.
  2. Using nested options
    • This article covers the concept of nesting options within other options and specifying option hierarchy using subcommands, using pirate-themed examples and code snippets with Apache Commons CLI.
  3. Using required options
    • This article covers how to specify and handle missing required options in Apache Commons CLI for command-line parsing in a humorous and pirate-themed style, including examples and code snippets.
  4. Using mutually exclusive options
    • This article discusses how to use Apache Commons CLI to specify mutually exclusive options and handle conflicts between options in command line interfaces.
  5. Using default values
    • This article covers how to specify default option values and how to handle missing option values in Apache Commons CLI, providing examples of both use cases.
  6. Using help
    • This article covers how to add help text and display it to the user in a command line interface using Apache Commons CLI.

Table of contents