cbeust/jcommander — Issue #103: Support "--" (or another configurable string) to stop parsing options
Author: lefou
Created: 2012-02-10 11:05:25+00:00
State: open

This is known from most (gnu) commandline tools to stop parsing options/commands. All parameters after the "--" have to be parsed as/into the main parameter(s) (the one without a names attribute).

This is necessary if you try to implement e.g. a tool like rm. To remove a file with name "-h" you cannot execute "rm -h" because that is parsed as option "-h" which means show help. When execution "rm -- -h" instead, rm would delete the file with name "-h".