Browse Source

small changes to strings

develop
Michael J. Curry 8 years ago
parent
commit
2269c76575
No known key found for this signature in database GPG Key ID: 58EEF5BB97F3E791
2 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/commands/new.rs
  2. +4
    -4
      src/main.rs

+ 2
- 2
src/commands/new.rs View File

@@ -121,7 +121,7 @@ fn ask_add_field_u32(field_name: &str, schema: &mut Schema) {
fn ask_add_field(schema: &mut Schema) {
println!("\n\n");
let field_name = prompt_input("New field name ", field_name_validate);
let text_or_integer = prompt_options("Text or unsigned 32-bit Integer", vec!('T', 'I'));
let text_or_integer = prompt_options("Text or unsigned 32-bit integer", vec!('T', 'I'));
if text_or_integer =='T' {
ask_add_field_text(&field_name, schema);
}
@@ -132,7 +132,7 @@ fn ask_add_field(schema: &mut Schema) {

fn run_new(directory: PathBuf) -> tantivy::Result<()> {
println!("\n{} ", Style::new().bold().fg(Green).paint("Creating new index"));
println!("{} ", Style::new().bold().fg(Green).paint("Let's define it's schema!"));
println!("{} ", Style::new().bold().fg(Green).paint("Let's define its schema!"));
let mut schema = Schema::new();
loop {
ask_add_field(&mut schema);


+ 4
- 4
src/main.rs View File

@@ -64,7 +64,7 @@ fn main() {
.short("t")
.long("num_threads")
.value_name("num_threads")
.help("Number of indexing thread. By default num cores - 1 will be used")
.help("Number of indexing threads. By default num cores - 1 will be used")
.default_value("0"))
)
.subcommand(
@@ -75,13 +75,13 @@ fn main() {
.short("q")
.long("queries")
.value_name("queries")
.help("File containing queries (one-per line) to run in the benchmark.")
.help("File containing queries (one per line) to run in the benchmark.")
.required(true))
.arg(Arg::with_name("num_repeat")
.short("n")
.long("num_repeat")
.value_name("num_repeat")
.help("Number of time to repeat the benchmark.")
.help("Number of times to repeat the benchmark.")
.default_value("1"))
)
.subcommand(
@@ -109,4 +109,4 @@ fn main() {
},
_ => {}
}
}
}

Loading…
Cancel
Save