Add —host command-line option as an alias of —conn

This commit is contained in:
Tobie Morgan Hitchcock 2022-08-06 11:34:17 +01:00
parent 863830cf3f
commit 0043e38bef

View file

@ -306,6 +306,7 @@ pub fn init() {
Arg::new("conn") Arg::new("conn")
.short('c') .short('c')
.long("conn") .long("conn")
.alias("host")
.forbid_empty_values(true) .forbid_empty_values(true)
.validator(conn_valid) .validator(conn_valid)
.default_value("https://cloud.surrealdb.com") .default_value("https://cloud.surrealdb.com")
@ -360,6 +361,7 @@ pub fn init() {
Arg::new("conn") Arg::new("conn")
.short('c') .short('c')
.long("conn") .long("conn")
.alias("host")
.forbid_empty_values(true) .forbid_empty_values(true)
.validator(conn_valid) .validator(conn_valid)
.default_value("https://cloud.surrealdb.com") .default_value("https://cloud.surrealdb.com")