diff --git a/Cargo.lock b/Cargo.lock index 6953799..3ebe091 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -65,7 +65,7 @@ checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e" [[package]] name = "merlin" -version = "1.0.16" +version = "1.0.17" dependencies = [ "clap", "shellexpand", diff --git a/Cargo.toml b/Cargo.toml index 6ff8f23..2f1a490 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "merlin" -version = "1.0.16" +version = "1.0.17" authors = ["geremachek "] edition = "2018" diff --git a/src/main.rs b/src/main.rs index 1722e89..d281388 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,15 +21,16 @@ fn main() { .help("Silence errors")) .arg(Arg::with_name("NOTATION") .index(1) + .multiple(true) .help("Merlin notation to evaluate before entering the shell")) .get_matches(); let mut p = plane::Plane::new(!merlin_args.is_present("no-errors")); - // parse the first argument as MN + // parse the first argument(s) as MN - if let Some(n) = merlin_args.value_of("NOTATION") { - p.parse_line(n); + if let Some(n) = merlin_args.values_of("NOTATION") { + p.parse_line(&n.collect::>().join(" ")); } // start the shell