You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.long_about("Displays descriptive statistics of an index. Displayed statistics are: number of published splits, number of documents, splits min/max timestamps, size of splits.")
111
112
.args(&[
112
113
arg!(--index <INDEX> "ID of the target index")
114
+
.display_order(1)
113
115
.required(true),
114
116
])
115
117
)
@@ -298,7 +300,7 @@ impl IndexCliCommand {
298
300
let client_args = ClientArgs::parse(&mut matches)?;
299
301
let index_id = matches
300
302
.remove_one::<String>("index")
301
-
.expect("`index` should be a required arg.");
303
+
.expect("`index` should be a required arg");
302
304
let assume_yes = matches.get_flag("yes");
303
305
Ok(Self::Clear(ClearIndexArgs{
304
306
client_args,
@@ -312,7 +314,7 @@ impl IndexCliCommand {
312
314
let index_config_uri = matches
313
315
.remove_one::<String>("index-config")
314
316
.map(|uri| Uri::from_str(&uri))
315
-
.expect("`index-config` should be a required arg.")?;
317
+
.expect("`index-config` should be a required arg")?;
316
318
let overwrite = matches.get_flag("overwrite");
317
319
let assume_yes = matches.get_flag("yes");
318
320
@@ -328,11 +330,11 @@ impl IndexCliCommand {
328
330
let client_args = ClientArgs::parse(&mut matches)?;
329
331
let index_id = matches
330
332
.remove_one::<String>("index")
331
-
.expect("`index` should be a required arg.");
333
+
.expect("`index` should be a required arg");
332
334
let index_config_uri = matches
333
335
.remove_one::<String>("index-config")
334
336
.map(|uri| Uri::from_str(&uri))
335
-
.expect("`index-config` should be a required arg.")?;
337
+
.expect("`index-config` should be a required arg")?;
336
338
let assume_yes = matches.get_flag("yes");
337
339
338
340
Ok(Self::Update(UpdateIndexArgs{
@@ -347,7 +349,8 @@ impl IndexCliCommand {
347
349
let client_args = ClientArgs::parse(&mut matches)?;
348
350
let index_id = matches
349
351
.remove_one::<String>("index")
350
-
.expect("`index` should be a required arg.");
352
+
.expect("`index` should be a required arg");
353
+
351
354
Ok(Self::Describe(DescribeIndexArgs{
352
355
client_args,
353
356
index_id,
@@ -363,7 +366,7 @@ impl IndexCliCommand {
363
366
let client_args = ClientArgs::parse_for_ingest(&mut matches)?;
364
367
let index_id = matches
365
368
.remove_one::<String>("index")
366
-
.expect("`index` should be a required arg.");
369
+
.expect("`index` should be a required arg");
367
370
let input_path_opt = ifletSome(input_path) = matches.remove_one::<String>("input-path"){
0 commit comments