use std::env;

fn help(name: str) {
  println!("Usage: gltf-to-glb <file> [options]
Options:

-e, --embed  embeds textures or shaders into binary GLTF file
                                      [array] [choices: \"textures\", \"shaders\"]
--cesium     sets the old body buffer name for compatibility with Cesium
                                                                     [boolean]
-h, --help   Show help                                               [boolean]", name);
}

fn main() {
  let args: Vec<String> = env::args().collect();

  // The first argument is the path that was used to call the program.
  println!("My path is {}.", args[0]);

  // The rest of the arguments are the passed command line parameters.
  // Call the program like this:
  //   $ ./args arg1 arg2
  println!("I got {:?} arguments: {:?}.", args.len() - 1, &args[1..]);

  match args.len() {
    1 => {
      println!("Not enough arguments.");
    },
    2 => {

    }
    _ => {
      help();
    }
  }
}
