From 0043e38befedd5333374e240dc4ba31fe75400ea Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 6 Aug 2022 11:34:17 +0100 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=94host=20command-line=20option=20a?= =?UTF-8?q?s=20an=20alias=20of=20=E2=80=94conn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cli/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 6fc12a91..d10e4ffe 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -306,6 +306,7 @@ pub fn init() { Arg::new("conn") .short('c') .long("conn") + .alias("host") .forbid_empty_values(true) .validator(conn_valid) .default_value("https://cloud.surrealdb.com") @@ -360,6 +361,7 @@ pub fn init() { Arg::new("conn") .short('c') .long("conn") + .alias("host") .forbid_empty_values(true) .validator(conn_valid) .default_value("https://cloud.surrealdb.com")