Skip to content

Commit 90cedc5

Browse files
authored
feat(options): Group command specific options (#147)
* feat(options): Group command specific options * push rest
1 parent 0c45eb2 commit 90cedc5

36 files changed

+46
-1
lines changed

cmds/checker/check-eask.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ exports.builder = {
2626
description: 'specify Eask-files for checker to lint',
2727
requiresArg: false,
2828
type: 'array',
29+
group: TITLE_CMD_OPTION,
2930
},
3031
output: {
3132
description: 'Output result to a file',
3233
alias: 'o',
3334
type: 'string',
35+
group: TITLE_CMD_OPTION,
3436
},
3537
json: {
3638
description: 'Output lint result in JSON format',
3739
type: 'boolean',
40+
group: TITLE_CMD_OPTION,
3841
},
3942
};
4043

cmds/clean/dist.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ exports.builder = {
2727
requiresArg: false,
2828
alias: 'dest',
2929
type: 'string',
30+
group: TITLE_CMD_OPTION,
3031
},
3132
};
3233

cmds/core/compile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ exports.builder = {
2626
description: 'specify files to byte-compile',
2727
requiresArg: false,
2828
type: 'array',
29+
group: TITLE_CMD_OPTION,
2930
},
3031
};
3132

cmds/core/concat.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,20 @@ exports.builder = {
2626
description: 'specify files to concatenate',
2727
requiresArg: false,
2828
type: 'array',
29+
group: TITLE_CMD_OPTION,
2930
},
3031
destination: {
3132
description: 'optional output destination',
3233
requiresArg: true,
3334
alias: 'dest',
3435
type: 'string',
36+
group: TITLE_CMD_OPTION,
3537
},
3638
output: {
3739
description: 'Output result to a file',
3840
alias: 'o',
3941
type: 'string',
42+
group: TITLE_CMD_OPTION,
4043
},
4144
};
4245

cmds/core/eval.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ exports.builder = {
2929
description: 'lisp form',
3030
requiresArg: false,
3131
type: 'string',
32+
group: TITLE_CMD_OPTION,
3233
},
3334
};
3435

cmds/core/exec-path.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ exports.builder = {
2626
description: 'patterns you want to search (regex)',
2727
requiresArg: false,
2828
type: 'array',
29+
group: TITLE_CMD_OPTION,
2930
},
3031
};
3132

cmds/core/files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ exports.builder = {
2626
description: 'patterns you want to search (wildcard)',
2727
requiresArg: false,
2828
type: 'array',
29+
group: TITLE_CMD_OPTION,
2930
},
3031
};
3132

cmds/core/init.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ exports.builder = {
3030
description: 'build from an existing package',
3131
requiresArg: true,
3232
type: 'string',
33+
group: TITLE_CMD_OPTION,
3334
},
3435
files: {
3536
description: 'files to use with `from` flag',
3637
requiresArg: false,
3738
type: 'array',
39+
group: TITLE_CMD_OPTION,
3840
},
3941
};
4042

cmds/core/install.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ exports.builder = {
2626
description: 'packages to install',
2727
requiresArg: false,
2828
type: 'array',
29+
group: TITLE_CMD_OPTION,
2930
},
3031
};
3132

cmds/core/list.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ exports.builder = {
2626
description: 'dependency depth level to print',
2727
requiresArg: true,
2828
type: 'number',
29+
group: TITLE_CMD_OPTION,
2930
},
3031
};
3132

0 commit comments

Comments
 (0)