Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ This is the root object of the OpenCLI Description.
| arguments | [[Argument](#argument-object)] | The option's arguments |
| group | `string` | The option group |
| description | `string` | The option description |
| recursive | `bool` | Specifies whether the option is accessible from the immediate parent command and, recursively, from its subcommands |
| hidden | `bool` | Whether or not the option is hidden |
| metadata | [[Metadata Object](#metadata-object)] | Custom metadata |

Expand Down
5 changes: 5 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@
"type": "string",
"description": "The option description"
},
"recursive": {
"type": "boolean",
"default": false,
"description": "Specifies whether the option is accessible from the immediate parent command and, recursively, from its subcommands"
},
"hidden": {
"type": "boolean",
"default": false,
Expand Down
3 changes: 3 additions & 0 deletions typespec/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ model Option {
@doc("The option description")
description?: string;

@doc("Specifies whether the option is accessible from the immediate parent command and, recursively, from its subcommands")
recursive?: boolean = false;

@doc("Whether or not the option is hidden")
hidden?: boolean = false;

Expand Down