Added default help argument to arg-parser
Some checks failed
Build / Tag Version (push) Blocked by required conditions
Build / Publish Documentation (push) Blocked by required conditions
Build / Build NPM Project (push) Has been cancelled

This commit is contained in:
Zakary Timson 2024-11-29 17:41:00 -05:00
parent 435be31347
commit 6b328e64ba

View File

@ -14,6 +14,8 @@ export type Arg<T = any> = {
}
export class ArgParser {
static readonly helpArg: Arg = {name: 'help', desc: 'Display command\'s help message', flags: ['-h', '--help'], default: false};
commands: ArgParser[] = [];
args: Arg[] = [];
flags: Arg[] = [];