123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- {
- "doc": {
- "help": "This is example UI with nested commands. It can be used to learn how UIs with nested commands are built in CLAP and how to interact with them in programs' code and on the commandline. It takes no operands. This description is taken from 'doc' field.",
- "usage": [
- "--help",
- "--version",
- "[--verbose | --quiet] <mode> [opts...]"
- ],
- "examples": [
- {
- "line": "--verbose foo --alpha",
- "desc": "do stuff"
- },
- {
- "line": "foo --quiet bary -gd",
- "desc": "do moar stuff"
- },
- {
- "line": "help --verbose | help --help",
- "desc": "display detailed help message"
- },
- {
- "line": "help --verbose -- [operand...] | help --help -- [operand...]",
- "desc": "display detailed help mesasge about chosen element"
- }
- ]
- },
- "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"
- }
- ],
- "local": [
- {
- "long": "version",
- "conflicts": ["--help"],
- "help": "display CLAP version"
- }
- ]
- },
- "commands": {
- "foo": {
- "doc": {
- "help": "This is child mode with name 'foo'."
- },
- "options": {
- "local": [
- {
- "short": "a",
- "long": "alpha",
- "help": "first letter of Greek alphabet"
- },
- {
- "short": "b",
- "long": "beta",
- "arguments": ["int"],
- "help": "second letter of Greek alphabet"
- }
- ]
- },
- "commands": {
- "bary": {
- "doc": {"help": "This is child-child mode with name 'bary'. It has some pretty long description. Not that this description (or summary? or whatever...) will tell you anything interesting, it's here only to stress the help screen builder with a description containing many words so the line-breaking can be tested. And some more words, just to make sure it is long."},
- "options": {
- "local": [
- {
- "short": "g",
- "long": "gamma",
- "help": "third letter of Greek alphabet"
- },
- {
- "short": "d",
- "long": "delta",
- "arguments": ["int"],
- "help": "fourth letter of Greek alphabet"
- }
- ]
- },
- "commands": {
- "baz": {
- "doc": {"help": "This is child-child-child mode with name 'baz'."},
- "options": {
- "local": [
- {
- "short": "e",
- "long": "epsilon",
- "help": "fifth letter of Greek alphabet"
- },
- {
- "short": "z",
- "long": "zeta",
- "arguments": ["int"],
- "help": "sixth letter of Greek alphabet"
- }
- ]
- }
- }
- }
- },
- "bax": {
- "doc": {"help": "This is child-child mode with name 'bax'."},
- "options": {
- "local": [
- {
- "long": "eta",
- "help": "seventh letter of Greek alphabet"
- },
- {
- "long": "theta",
- "help": "eighth letter of Greek alphabet"
- }
- ]
- }
- }
- }
- }
- },
- "operands": {"no": [0, 0]}
- }
|