mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-31 04:22: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,
|
||||
_add_help = true,
|
||||
_fields = {
|
||||
"name", "description", "target", "require_command",
|
||||
"name", "description", "require_command",
|
||||
"action", "usage", "help", "add_help"
|
||||
}
|
||||
}:include(Declarative)
|
||||
|
||||
local Command = Parser:extends {
|
||||
__name = "Command",
|
||||
_aliases = {}
|
||||
_aliases = {},
|
||||
_fields = {
|
||||
"name", "aliases", "description", "target",
|
||||
"require_command", "action", "usage", "help",
|
||||
"add_help"
|
||||
}
|
||||
}
|
||||
|
||||
local Argument = class {
|
||||
|
Reference in New Issue
Block a user