mirror of
https://github.com/apple/swift-argument-parser.git
synced 2026-06-06 20:18:23 +00:00
* Nonexclusive flags implemented via an array of enum cases are now separate ArgumentInfoV0 instances, instead of different names for the same ArgumentInfoV0. * Improve ToolInfoV0 HelpCommand injection. * Add ArgumentInfoV0.ParsingStrategyV0 enum. * Refactor bash completions to use ToolInfoV0. * Refactor fish completions to use ToolInfoV0. * Refactor zsh completions to use ToolInfoV0. * Remove vestigial shellVariableNamePrefix. * Add .editorconfig files to prevent automatic whitespace changes to test snapshots. Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
154 lines
3.7 KiB
JSON
154 lines
3.7 KiB
JSON
{
|
|
"command" : {
|
|
"abstract" : "Print the sum of the values.",
|
|
"arguments" : [
|
|
{
|
|
"abstract" : "Use hexadecimal notation for the result.",
|
|
"isOptional" : true,
|
|
"isRepeating" : false,
|
|
"kind" : "flag",
|
|
"names" : [
|
|
{
|
|
"kind" : "long",
|
|
"name" : "hex-output"
|
|
},
|
|
{
|
|
"kind" : "short",
|
|
"name" : "x"
|
|
}
|
|
],
|
|
"parsingStrategy" : "default",
|
|
"preferredName" : {
|
|
"kind" : "long",
|
|
"name" : "hex-output"
|
|
},
|
|
"shouldDisplay" : true,
|
|
"valueName" : "hex-output"
|
|
},
|
|
{
|
|
"abstract" : "A group of integers to operate on.",
|
|
"isOptional" : true,
|
|
"isRepeating" : true,
|
|
"kind" : "positional",
|
|
"parsingStrategy" : "default",
|
|
"shouldDisplay" : true,
|
|
"valueName" : "values"
|
|
},
|
|
{
|
|
"abstract" : "Show the version.",
|
|
"isOptional" : true,
|
|
"isRepeating" : false,
|
|
"kind" : "flag",
|
|
"names" : [
|
|
{
|
|
"kind" : "long",
|
|
"name" : "version"
|
|
}
|
|
],
|
|
"parsingStrategy" : "default",
|
|
"preferredName" : {
|
|
"kind" : "long",
|
|
"name" : "version"
|
|
},
|
|
"shouldDisplay" : true,
|
|
"valueName" : "version"
|
|
},
|
|
{
|
|
"abstract" : "Show help information.",
|
|
"isOptional" : true,
|
|
"isRepeating" : false,
|
|
"kind" : "flag",
|
|
"names" : [
|
|
{
|
|
"kind" : "short",
|
|
"name" : "h"
|
|
},
|
|
{
|
|
"kind" : "long",
|
|
"name" : "help"
|
|
}
|
|
],
|
|
"parsingStrategy" : "default",
|
|
"preferredName" : {
|
|
"kind" : "long",
|
|
"name" : "help"
|
|
},
|
|
"shouldDisplay" : true,
|
|
"valueName" : "help"
|
|
}
|
|
],
|
|
"commandName" : "add",
|
|
"shouldDisplay" : true,
|
|
"subcommands" : [
|
|
{
|
|
"abstract" : "Show subcommand help information.",
|
|
"arguments" : [
|
|
{
|
|
"isOptional" : true,
|
|
"isRepeating" : true,
|
|
"kind" : "positional",
|
|
"parsingStrategy" : "default",
|
|
"shouldDisplay" : true,
|
|
"valueName" : "subcommands"
|
|
},
|
|
{
|
|
"isOptional" : true,
|
|
"isRepeating" : false,
|
|
"kind" : "flag",
|
|
"names" : [
|
|
{
|
|
"kind" : "short",
|
|
"name" : "h"
|
|
},
|
|
{
|
|
"kind" : "long",
|
|
"name" : "help"
|
|
},
|
|
{
|
|
"kind" : "longWithSingleDash",
|
|
"name" : "help"
|
|
}
|
|
],
|
|
"parsingStrategy" : "default",
|
|
"preferredName" : {
|
|
"kind" : "long",
|
|
"name" : "help"
|
|
},
|
|
"shouldDisplay" : false,
|
|
"valueName" : "help"
|
|
},
|
|
{
|
|
"abstract" : "Show the version.",
|
|
"isOptional" : true,
|
|
"isRepeating" : false,
|
|
"kind" : "flag",
|
|
"names" : [
|
|
{
|
|
"kind" : "long",
|
|
"name" : "version"
|
|
}
|
|
],
|
|
"parsingStrategy" : "default",
|
|
"preferredName" : {
|
|
"kind" : "long",
|
|
"name" : "version"
|
|
},
|
|
"shouldDisplay" : true,
|
|
"valueName" : "version"
|
|
}
|
|
],
|
|
"commandName" : "help",
|
|
"shouldDisplay" : true,
|
|
"superCommands" : [
|
|
"math",
|
|
"add"
|
|
]
|
|
}
|
|
],
|
|
"superCommands" : [
|
|
"math"
|
|
]
|
|
},
|
|
"serializationVersion" : 0
|
|
}
|