chore: changed to export function help

This commit is contained in:
qxb3
2022-05-10 00:07:10 +08:00
committed by EvolutionX
parent ca23d17670
commit c3ec9c5f74
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
export default function () {
export function help() {
console.log(
'This is sern cli help section\n\n' +
'Fill me up later!'

View File

@@ -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);