Added default help argument to arg-parser
This commit is contained in:
parent
435be31347
commit
6b328e64ba
@ -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[] = [];
|
||||
|
Loading…
Reference in New Issue
Block a user