help command
This commit is contained in:
parent
bffd0c2b4b
commit
c411678db2
|
|
@ -5,6 +5,8 @@
|
||||||
import { commandPath } from "@/commands"
|
import { commandPath } from "@/commands"
|
||||||
|
|
||||||
export default async function (cmd: string) {
|
export default async function (cmd: string) {
|
||||||
|
if (!cmd) return "usage: help <command>"
|
||||||
|
|
||||||
const path = commandPath(cmd)
|
const path = commandPath(cmd)
|
||||||
if (!path) throw `${cmd} not found`
|
if (!path) throw `${cmd} not found`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user