"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cli/flags.rs" between
deno-1.12.0.tar.gz and deno-1.12.1.tar.gz

About: Deno is is a simple, modern and secure runtime for JavaScript and TypeScript that uses the V8 JavaScript engine and is built in Rust.

flags.rs  (deno-1.12.0):flags.rs  (deno-1.12.1)
skipping to change at line 1062 skipping to change at line 1062
.require_equals(true) .require_equals(true)
.takes_value(true) .takes_value(true)
.conflicts_with("inspect") .conflicts_with("inspect")
.conflicts_with("inspect-brk") .conflicts_with("inspect-brk")
.help("UNSTABLE: Collect coverage profile data"), .help("UNSTABLE: Collect coverage profile data"),
) )
.arg( .arg(
Arg::with_name("jobs") Arg::with_name("jobs")
.short("j") .short("j")
.long("jobs") .long("jobs")
.help("Number of parallel workers, defaults to # of CPUs when no value i s provided. Defaults to 1 when the option is not present.")
.min_values(0) .min_values(0)
.max_values(1) .max_values(1)
.takes_value(true) .takes_value(true)
.validator(|val: String| match val.parse::<usize>() { .validator(|val: String| match val.parse::<usize>() {
Ok(_) => Ok(()), Ok(_) => Ok(()),
Err(_) => Err("jobs should be a number".to_string()), Err(_) => Err("jobs should be a number".to_string()),
}), }),
) )
.arg( .arg(
Arg::with_name("files") Arg::with_name("files")
skipping to change at line 1775 skipping to change at line 1776
.values_of("files") .values_of("files")
.unwrap() .unwrap()
.map(String::from) .map(String::from)
.collect(); .collect();
Some(files) Some(files)
} else { } else {
None None
}; };
flags.coverage_dir = matches.value_of("coverage").map(String::from); flags.coverage_dir = matches.value_of("coverage").map(String::from);
flags.watch = matches.is_present("watch");
flags.subcommand = DenoSubcommand::Test { flags.subcommand = DenoSubcommand::Test {
no_run, no_run,
doc, doc,
fail_fast, fail_fast,
quiet, quiet,
include, include,
filter, filter,
shuffle, shuffle,
allow_none, allow_none,
concurrent_jobs, concurrent_jobs,
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)