diff --git a/src/actions/init.ts b/src/actions/init.ts index 4f61bfb..e3fe0ae 100644 --- a/src/actions/init.ts +++ b/src/actions/init.ts @@ -81,7 +81,7 @@ export default async (args: CLIArguments) => { const { calendarTitle, events } = res - if (!exportMethods.includes(exportMethod)) process.exit(1) + if (!Object.keys(_export).includes(exportMethod)) process.exit(1) _export[exportMethod](calendarTitle, events, locale) } diff --git a/src/export/terminal/index.ts b/src/export/terminal/index.ts index 96a4e3d..fbaef51 100644 --- a/src/export/terminal/index.ts +++ b/src/export/terminal/index.ts @@ -22,7 +22,6 @@ export default ( const table = new Table({ head: Object.keys(data) }) - console.log(process.argv) table.push( Object.keys(data).map((month) => `${data[month].length} event(s) loaded`) )