some-cli/src/command-hooks/help.amber

11 lines
367 B
Plaintext

import { bold, echo_info, underlined } from "std/env"
pub fun help(): Null {
const usage = underlined(bold("Usage"))
const commands = underlined(bold("Commands"))
echo_info("{usage}: some-cli <command> [--flag[=value]] [-f[=value]]")
echo_info("")
echo_info("{commands}")
echo_info(" help Print this message or the help of the given command")
}