From 1db2f8eeddbc930fb562bdf5f65137b8acf0c630 Mon Sep 17 00:00:00 2001 From: qxb3 Date: Tue, 10 May 2022 00:07:10 +0800 Subject: [PATCH] Changed to export function help --- src/commands/help.js | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/help.js b/src/commands/help.js index 56381ae..f725d65 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -1,4 +1,4 @@ -export default function () { +export function help() { console.log( 'This is sern cli help section\n\n' + 'Fill me up later!' diff --git a/src/index.js b/src/index.js index 6bed787..6971622 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ #!/usr/bin/env node import { init } from './commands/init.js'; -import help from './commands/help.js'; +import { help } from './commands/help.js'; const regex = /(?<=--|-)\w+/gm; const flags = process.argv.slice(2).join(' ').match(regex);