forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandLineDefinition.ts
More file actions
38 lines (32 loc) · 1.12 KB
/
CommandLineDefinition.ts
File metadata and controls
38 lines (32 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @Copyright (c) Microsoft Corporation. All rights reserved.
*/
/**
* For use with CommandLineParser, this interface represents a generic command-line parameter
*/
export interface IBaseCommandLineDefinition {
/**
* The long name of the flag including double dashes, e.g. "--do-something"
*/
parameterLongName: string;
/**
* An optional short name for the flag including the dash, e.g. "-d"
*/
parameterShortName?: string;
/**
* Documentation for the flag, that will be shown when invoking the tool with "--help"
*/
description: string;
}
/**
* For use with CommandLineParser, this interface represents a boolean flag command line parameter
*/
export interface ICommandLineFlagDefinition extends IBaseCommandLineDefinition { }
/**
* For use with CommandLineParser, this interface represents a string command line parameter
*/
export interface ICommandLineStringDefinition extends IBaseCommandLineDefinition { }
/**
* For use with CommandLineParser, this interface represents an integer command line parameter
*/
export interface ICommandLineIntegerDefinition extends IBaseCommandLineDefinition { }