Compare commits

...

2 Commits

Author SHA1 Message Date
30be1c5a91 bump 0.23.4
All checks were successful
Build / Build NPM Project (push) Successful in 1m2s
Build / Tag Version (push) Successful in 14s
Build / Publish Documentation (push) Successful in 56s
2024-11-29 17:41:20 -05:00
6b328e64ba 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
2024-11-29 17:41:00 -05:00
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.23.3",
"version": "0.23.4",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

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[] = [];