1*Jump to [source](escaped_positional.rs)* 2 3**This requires enabling the `cargo` feature flag.** 4 5You can use `--` to escape further arguments. 6 7Let's see what this looks like in the help: 8```bash 9$ escaped_positional --help 10clap [..] 11A simple to use, efficient, and full-featured Command Line Argument Parser 12 13USAGE: 14 escaped_positional[EXE] [OPTIONS] [-- <SLOP>...] 15 16ARGS: 17 <SLOP>... 18 19OPTIONS: 20 -f 21 -h, --help Print help information 22 -p <PEAR> 23 -V, --version Print version information 24``` 25 26Here is a baseline without any arguments: 27```bash 28$ escaped_positional 29-f used: false 30-p's value: None 31'slops' values: [] 32``` 33 34Notice that we can't pass positional arguments before `--`: 35```bash 36$ escaped_positional foo bar 37? failed 38error: Found argument 'foo' which wasn't expected, or isn't valid in this context 39 40USAGE: 41 escaped_positional[EXE] [OPTIONS] [-- <SLOP>...] 42 43For more information try --help 44``` 45 46But you can after: 47```bash 48$ escaped_positional -f -p=bob -- sloppy slop slop 49-f used: true 50-p's value: Some("bob") 51'slops' values: ["sloppy", "slop", "slop"] 52``` 53 54As mentioned, the parser will directly pass everything through: 55```bash 56$ escaped_positional -- -f -p=bob sloppy slop slop 57-f used: false 58-p's value: None 59'slops' values: ["-f", "-p=bob", "sloppy", "slop", "slop"] 60``` 61