Example 1: Option and an argument

story

I want to pick up a command line that has both an option and an argument. They are not connected so the following command lines are all valid:

command -l width
command -l
command width
command

!CLIDemoWithOneOptionAndAnArgumentTest.java!

Example 2: Option with a argument, and picking it up

story

I want to pick up a command line that has both an option and that option accepts an argument. They are connected so the following command lines are all valid:

command -l width
command -l
command

!CLIDemoWithOneOptionWithAnArgumentTest.java!

  • No labels