From 5dae31f0a48f87ace6017ec1607d2221f6e12029 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 1 Dec 2018 14:07:26 +0800 Subject: [PATCH] fix: update exported function as well --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9fdfee4..c9a493e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,8 @@ import CAC from './CAC' -const cac = () => new CAC() +/** + * @param name The program name to display in help and version message + */ +const cac = (name = '') => new CAC(name) export = cac