@@ -1,6 +1,6 @@
11//! Knot compiler CLI.
22//!
3−//! Usage: knotc build <file.knot>
3+//! Usage: knot build <file.knot>
44
55use knot_compiler::{base, codegen, desugar, effects, infer, linker, lockfile, modules, stratify, types, unused};
66
@@ -20,7 +20,7 @@ fn main() {
2020 "build" => {
2121 if args.len() < 3 {
2222 eprintln!("Error: missing source file");
23− eprintln!("Usage: knotc build <file.knot> [-o <path>] [--name=value ...]");
23+ eprintln!("Usage: knot build <file.knot> [-o <path>] [--name=value ...]");
2424 process::exit(1);
2525 }
2626 // Parse -o/--output and compile-time overrides from remaining args
@@ -86,9 +86,9 @@ fn print_usage() {
8686 eprintln!("Knot compiler");
8787 eprintln!();
8888 eprintln!("Usage:");
89− eprintln!(" knotc build <file.knot> [-o <path>] [--name=value ...] Compile with optional output path and constant overrides");
90− eprintln!(" knotc fmt [--check] [--stdout] <file.knot> Format a source file in place");
91− eprintln!(" knotc help Show this help message");
89+ eprintln!(" knot build <file.knot> [-o <path>] [--name=value ...] Compile with optional output path and constant overrides");
90+ eprintln!(" knot fmt [--check] [--stdout] <file.knot> Format a source file in place");
91+ eprintln!(" knot help Show this help message");
9292}
9393
9494fn cmd_fmt(args: &[String]) {
@@ -101,7 +101,7 @@ fn cmd_fmt(args: &[String]) {
101101 "--stdout" | "-" => to_stdout = true,
102102 other if other.starts_with("--") => {
103103 eprintln!("Error: unknown fmt flag '{}'", other);
104− eprintln!("Usage: knotc fmt [--check] [--stdout] <file.knot>...");
104+ eprintln!("Usage: knot fmt [--check] [--stdout] <file.knot>...");
105105 process::exit(2);
106106 }
107107 other => paths.push(other),
@@ -109,7 +109,7 @@ fn cmd_fmt(args: &[String]) {
109109 }
110110 if paths.is_empty() {
111111 eprintln!("Error: missing source file");
112− eprintln!("Usage: knotc fmt [--check] [--stdout] <file.knot>...");
112+ eprintln!("Usage: knot fmt [--check] [--stdout] <file.knot>...");
113113 process::exit(2);
114114 }
115115