You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
//! Argument stuff
|
|
use super::*;
|
|
|
|
|
|
/// Name of executable
|
|
pub fn program_name() -> &'static str
|
|
{
|
|
lazy_static! {
|
|
static ref NAME: String = std::env::args().next().unwrap();
|
|
}
|
|
&NAME[..]
|
|
}
|
|
|
|
/// Print usage
|
|
pub fn usage()
|
|
{
|
|
println!(r#"Usage: {} <files...>"#, program_name());
|
|
}
|