-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
18 lines (16 loc) · 925 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//==============================================================================
// ■ Constants (constants.js)
//------------------------------------------------------------------------------
// Global constant variables.
//==============================================================================
//------------------------------------------------------------------------------
// ● Flag-Prefixes
//------------------------------------------------------------------------------
global.LONG_PREFIX = "--";
global.SHORT_PREFIX = "-";
//------------------------------------------------------------------------------
// ● Error-Strings
//------------------------------------------------------------------------------
global.ERR_NOT_FLAG = (text) =>
`\"${text}\" is not a flag. A flag must start with \"${LONG_PREFIX}\" or "${SHORT_PREFIX}\"`;
global.ERR_BAD_OPTION = (option) => `Bad option: ${option.flag}`;