mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-08-01 13:02:18 +00:00
fixed Command not having aliases field, and Parser havin target field
This commit is contained in:
@@ -51,14 +51,19 @@ local Parser = class {
|
|||||||
_require_command = false,
|
_require_command = false,
|
||||||
_add_help = true,
|
_add_help = true,
|
||||||
_fields = {
|
_fields = {
|
||||||
"name", "description", "target", "require_command",
|
"name", "description", "require_command",
|
||||||
"action", "usage", "help", "add_help"
|
"action", "usage", "help", "add_help"
|
||||||
}
|
}
|
||||||
}:include(Declarative)
|
}:include(Declarative)
|
||||||
|
|
||||||
local Command = Parser:extends {
|
local Command = Parser:extends {
|
||||||
__name = "Command",
|
__name = "Command",
|
||||||
_aliases = {}
|
_aliases = {},
|
||||||
|
_fields = {
|
||||||
|
"name", "aliases", "description", "target",
|
||||||
|
"require_command", "action", "usage", "help",
|
||||||
|
"add_help"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
local Argument = class {
|
local Argument = class {
|
||||||
|
Reference in New Issue
Block a user