@boost/args
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -6,2 +6,14 @@ # Change Log | ||
### 1.2.1 - 2020-03-22 | ||
#### ⚙️ Types | ||
- Update `Command` usage to support arrays. ([ad04465](https://github.com/milesj/boost/commit/ad04465)) | ||
**Note:** Version bump only for package @boost/args | ||
## 1.2.0 - 2020-02-04 | ||
@@ -8,0 +20,0 @@ |
@@ -21,3 +21,4 @@ "use strict"; | ||
// TERMINOLOGY | ||
// arg - All types of arguments passed on the command line, separated by a space. | ||
// command line - The entire line that encompasses the following parts. | ||
// arg - Each type of argument (or part) passed on the command line, separated by a space. | ||
// command - An optional "command" being ran that allows for branching functionality. | ||
@@ -29,3 +30,3 @@ // Sub-commands are separated with ":". | ||
// Supports any raw value, and enforces a defined order. | ||
// rest arg - All remaining arguments that appear after a stand alone "--". | ||
// rest - All remaining arguments that appear after a stand alone "--". | ||
// Usually passed to subsequent scripts. | ||
@@ -32,0 +33,0 @@ // scope - Argument currently being parsed. |
@@ -45,11 +45,4 @@ export declare type Argv = string[]; | ||
export interface Command extends Config { | ||
usage?: string; | ||
usage?: string | string[]; | ||
} | ||
export interface Usage extends Command { | ||
commands?: { | ||
[name: string]: Usage; | ||
}; | ||
options?: OptionConfigMap; | ||
params?: ParamConfigList; | ||
} | ||
export declare type InferArgType<T> = T extends boolean ? 'boolean' : T extends number | number[] ? 'number' : 'string'; | ||
@@ -56,0 +49,0 @@ export interface Arg<T> extends Config { |
{ | ||
"name": "@boost/args", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A type-safe and convention based argument parsing library, with strict validation checks.", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "3c0a3aabc8de08093f34daaa4fbad3b42a7609db" | ||
"gitHead": "fe9903f8a80ae0ad19cc9fd9e51ccbd47e94356e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57618
912