[rustfmt] Updates simply due to current rustfmt.
Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
This commit is contained in:
parent
d9dc0eafbf
commit
5d7a18c507
@ -1,4 +1,5 @@
|
||||
#[macro_use] extern crate clap;
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
extern crate names;
|
||||
|
||||
use clap::{App, Arg};
|
||||
@ -11,13 +12,11 @@ fn main() {
|
||||
.about("A random name generator with results like `delirious-pail'.")
|
||||
.arg(Arg::with_name("amount")
|
||||
.help("Number of names to generate (default: 1)")
|
||||
.index(1)
|
||||
)
|
||||
.index(1))
|
||||
.arg(Arg::with_name("number")
|
||||
.short("n")
|
||||
.long("number")
|
||||
.help("Adds a random number to the name(s)")
|
||||
)
|
||||
.help("Adds a random number to the name(s)"))
|
||||
.get_matches();
|
||||
|
||||
let amount = value_t!(matches.value_of("amount"), usize).unwrap_or(1);
|
||||
|
Loading…
Reference in New Issue
Block a user