1use std::process::exit;
4
5use carlotk::prelude::*;
6
7pub const HELP: &str = include_str!("../help.txt");
8pub const HELP_HELP: &str = include_str!("../help_help.txt");
9
10pub fn help(args: CliArgs) {
11 if args.contains(Flag::Help) {
12 helpme();
13 } else {
14 printhelp(HELP);
15 }
16}
17
18pub fn helpme() {
19 printhelp(HELP_HELP);
20}
21
22pub fn helphelp() -> ! {
24 println!("{}", "The Carlo Language".truecolor(20, 146, 255).bold());
25 println!("Version {}", VERSION);
26 println!("Developed by Hobbs Bros.");
27 println!();
28 println!("Execute `carlo help` to see the main help menu.");
29
30 exit(0);
31}