1 2 3 4 5 6 7 8 9 10 11 12
#[macro_use] extern crate clap; use clap::App; fn main() { let matches = App::new("Starship") .about("The cross-platform prompt for astronauts.") // pull the version number from Cargo.toml .version(crate_version!()) .get_matches(); }