Simon Lydell
|
79eaa5a6e1
|
Remove reassignment in createUsage
|
2017-09-13 18:21:04 +08:00 |
|
Simon Lydell
|
72132b4e97
|
Remove trailing whitespace in cli-constant.js
|
2017-09-13 18:21:04 +08:00 |
|
ikatyang
|
2ec2ff9f9d
|
refactor: replace getDetailOption() with detailOptionMap
|
2017-09-11 00:48:05 +08:00 |
|
ikatyang
|
a62be6a1d5
|
refactor: add getDetailOption()
|
2017-09-11 00:45:07 +08:00 |
|
ikatyang
|
b4ed4d1ffb
|
refactor: remove hidden, display option usage only if (opposite-)description existed
|
2017-09-11 00:24:03 +08:00 |
|
ikatyang
|
d6a1474901
|
refactor: replace no-option with oppositeDescription
|
2017-09-11 00:09:14 +08:00 |
|
ikatyang
|
3fa11984e9
|
refactor: use standard // fall through
|
2017-09-10 23:26:13 +08:00 |
|
ikatyang
|
4c9763c530
|
docs: fix typo
|
2017-09-10 16:39:43 +08:00 |
|
ikatyang
|
1a4aac8f9b
|
refactor: put no-option after option
|
2017-09-10 14:10:42 +08:00 |
|
ikatyang
|
0c3fe2bc9f
|
refactor: sort category
|
2017-09-10 13:45:18 +08:00 |
|
ikatyang
|
b9bc54aab6
|
refactor: adjust category
|
2017-09-10 13:37:21 +08:00 |
|
ikatyang
|
b51135d9fd
|
refactor: add explaining for each of the properties
|
2017-09-10 13:29:18 +08:00 |
|
ikatyang
|
0f9bb5b971
|
refactor: rename formatOption with forwardToApi
|
2017-09-10 12:32:15 +08:00 |
|
ikatyang
|
eaafbb77aa
|
refactor: adjust warning message
|
2017-09-10 12:17:33 +08:00 |
|
ikatyang
|
46a4cac617
|
refactor: pick format option from detailOptions
|
2017-09-10 12:11:32 +08:00 |
|
ikatyang
|
fabba20900
|
refactor: fix typo
|
2017-09-09 16:41:28 +08:00 |
|
ikatyang
|
4d4d8e3f4e
|
refactor: normalizeArgv without using getter
|
2017-09-09 13:38:28 +08:00 |
|
ikatyang
|
a7f595ca3e
|
refactor: move createUsage to util
|
2017-09-09 12:40:55 +08:00 |
|
ikatyang
|
82eaadc03a
|
refactor: remove unnecessary code
|
2017-09-09 12:09:43 +08:00 |
|
ikatyang
|
97100c42c4
|
test(integration): add tests for cursor-offset
|
2017-09-09 12:06:50 +08:00 |
|
ikatyang
|
6ab8edafd5
|
test: add tests
|
2017-09-09 11:49:22 +08:00 |
|
ikatyang
|
507545510f
|
refactor: add comment
|
2017-09-08 16:53:51 +08:00 |
|
ikatyang
|
c88a45bbf7
|
refactor: categorize usages
|
2017-09-08 16:52:09 +08:00 |
|
ikatyang
|
51d5effaf4
|
refactor: rename isHidden with hidden
|
2017-09-08 16:27:41 +08:00 |
|
ikatyang
|
c2c9cc3759
|
refactor: dont consider prefix no- option as real option
|
2017-09-08 16:26:08 +08:00 |
|
ikatyang
|
cc66f9f923
|
refactor: remove unnecessary variable
|
2017-09-08 16:14:48 +08:00 |
|
ikatyang
|
de207b9f32
|
refactor: rename options with detailOptions
|
2017-09-08 15:33:39 +08:00 |
|
ikatyang
|
2de3b13175
|
refactor: wrap usage in function
|
2017-09-08 15:31:59 +08:00 |
|
ikatyang
|
a1c3350bd1
|
refactor: change isFormatOption: true to category: 'format'
|
2017-09-08 15:22:24 +08:00 |
|
ikatyang
|
a1c9fd3e9d
|
refactor: move usage to cli-usage
|
2017-09-08 15:18:45 +08:00 |
|
ikatyang
|
08460e5ca5
|
test: add tests for --stdin-filepath
|
2017-09-08 15:08:19 +08:00 |
|
ikatyang
|
50a26900de
|
refactor: remove unnecessary code
|
2017-09-08 14:55:22 +08:00 |
|
ikatyang
|
d762f9d191
|
refactor: toNumber in getter
|
2017-09-08 14:53:13 +08:00 |
|
ikatyang
|
91ecadd168
|
refactor: validate value in getter
|
2017-09-08 14:48:54 +08:00 |
|
ikatyang
|
6e9e441aa9
|
refactor: reduce duplicate parameters
|
2017-09-08 13:57:45 +08:00 |
|
ikatyang
|
a0e7613058
|
refactor: set deprecared option value warning on getter
|
2017-09-08 13:54:28 +08:00 |
|
ikatyang
|
d9fd340902
|
test: add test for deprecated option value
|
2017-09-08 12:36:00 +08:00 |
|
ikatyang
|
98c45bb421
|
refactor: use getter to show warning
|
2017-09-08 12:33:26 +08:00 |
|
ikatyang
|
b13a104a7b
|
test: add test for --flow-parser
|
2017-09-08 11:45:59 +08:00 |
|
ikatyang
|
0630d174ab
|
test(integration): fix status
|
2017-09-08 10:59:48 +08:00 |
|
ikatyang
|
de2f61cd3e
|
Merge branch 'master' into refactor/cli
|
2017-09-08 10:58:28 +08:00 |
|
ikatyang
|
8939ee45db
|
refactor: extract normalize function
|
2017-09-08 10:57:29 +08:00 |
|
ikatyang
|
0981de9790
|
refactor: add missing dot
|
2017-09-08 08:54:59 +08:00 |
|
ikatyang
|
402519ffb0
|
refactor: no need to use reduce
|
2017-09-07 18:13:19 +08:00 |
|
ikatyang
|
fe4c5eb582
|
refactor: no need to pass additional arg
|
2017-09-07 17:09:45 +08:00 |
|
ikatyang
|
fdf257b97f
|
refactor: rename err to error
|
2017-09-07 17:02:43 +08:00 |
|
ikatyang
|
1156cb3e67
|
refactor: no need to use switch..case
|
2017-09-07 16:48:13 +08:00 |
|
ikatyang
|
3aef0bf1a0
|
refactor: remove unnecessary code
|
2017-09-07 16:41:51 +08:00 |
|
ikatyang
|
4163a4fa83
|
refactor: replace cliDefaultOptions with apiDefaultOptions
|
2017-09-07 16:23:40 +08:00 |
|
ikatyang
|
11183f6d7e
|
refactor: extract validate option functions
|
2017-09-07 15:14:43 +08:00 |
|