generated from Arnesfield/template.ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow alias args for non option like arguments but validate them to b…
…e a proper match
- Loading branch information
1 parent
2a5df16
commit bc9c8eb
Showing
6 changed files
with
139 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
export enum ParsedType { | ||
Value, | ||
Match | ||
} | ||
|
||
export interface Parsed { | ||
/** | ||
* The argument string. | ||
*/ | ||
arg: string; | ||
/** | ||
* Determines whether the {@linkcode arg} is treated | ||
* as a value (`true`) or an option/command/non-strict value (`false`). | ||
* Determines whether the {@linkcode arg} is treated as a value or an option/command. | ||
* | ||
* If {@linkcode arg} is treated as a value, | ||
* it is saved as an argument for the child node. | ||
*/ | ||
raw?: boolean; | ||
type?: ParsedType; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters