From 3b5756d8c327e6fe5eb3cd9ff825d00e8a370163 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Wed, 25 Aug 2021 05:26:53 -0500 Subject: [PATCH] require target argument --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8488c60..67156d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ fn try_main() -> Result<()> { .long_about( "works like `sort`, but sorts according to edit distance instead of alphanumerically.\n\nYou can choose the edit distance algorithm we use for this! If you don't know which one you need, Levenshtein is a good default. Try Jaro-Winkler if you care about your strings having similar prefixes (for example files in a project.)" ) - .arg(Arg::new("target").about("sort according to distance from this string")) + .arg(Arg::new("target").about("sort according to distance from this string").required(true)) .arg( Arg::new("levenshtein") .long("levenshtein")