From da4274966ad971233d04ec294b57ed947e363095 Mon Sep 17 00:00:00 2001 From: ssube Date: Mon, 17 Jun 2019 08:19:35 -0500 Subject: [PATCH] feat: group config & rules in help --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index f2271b4..4bb26ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,16 +13,19 @@ const CONFIG_ARGS_PATH = 'config-path'; const RULE_OPTION: Options = { default: [], + group: 'Rules:', type: 'array', }; const MAIN_ARGS = usage(`Usage: $0 [options]`) .option(CONFIG_ARGS_NAME, { default: `.${VERSION_INFO.app.name}.yml`, + group: 'Config:', type: 'string', }) .option(CONFIG_ARGS_PATH, { default: [], + group: 'Config:', type: 'array', }) .option('coerce', {