1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- {
- "doc": {
- "help": "this is example flat mode",
- "usage": [
- "--help",
- "--version",
- "--ok [--verbose | --quiet] [opts...]"
- ]
- },
- "commands": {},
- "options": {
- "global": [
- {
- "short": "h",
- "long": "help",
- "help": "display help message"
- },
- {
- "short": "v",
- "long": "verbose",
- "conflicts": ["--quiet"],
- "help": "display verbose output"
- },
- {
- "short": "q",
- "long": "quiet",
- "conflicts": ["--verbose"],
- "help": "be silent"
- },
- {
- "long": "version",
- "conflicts": ["--help"],
- "help": "display CLAP version"
- }
- ],
- "local": [
- {
- "long": "ok",
- "required": true,
- "not_with": ["--help", "--version"]
- },
- {
- "short": "e",
- "long": "echo",
- "arguments": ["str"],
- "plural": true,
- "help": "print option's argument to screen"
- },
- {
- "short": "q",
- "long": "question",
- "requires": ["--answer"],
- "help": "just an option"
- },
- {
- "short": "a",
- "long": "answer",
- "requires": ["--question"],
- "help": "an answer to the question"
- }
- ]
- },
- "operands": {"no": [0]}
- }
|