use std::env;

const HELP_MESSAGE: &str = r#"
Usage:
  table -h | --help

Options:
  -h --help  Print help message
"#;

fn main() {
    for arg in env::args() {
        match &*arg {
            "-h" | "--help" => println!("{}", HELP_MESSAGE.trim()),
            _ => println!("TODO: implement other flags"),
        }
    }
}

fn main() {
    println!("Hello, world!");
}

--- 
+++ 
@@ -1,18 +1,3 @@
-use std::env;
-
-const HELP_MESSAGE: &str = r#"
-Usage:
-  table -h | --help
-
-Options:
-  -h --help  Print help message
-"#;
-
 fn main() {
-    for arg in env::args() {
-        match &*arg {
-            "-h" | "--help" => println!("{}", HELP_MESSAGE.trim()),
-            _ => println!("TODO: implement other flags"),
-        }
-    }
+    println!("Hello, world!");
 }
Print help message with -h or --help flag
