Ensure NS+DB values are required on export CLI command

This commit is contained in:
Tobie Morgan Hitchcock 2022-07-29 10:36:54 +01:00
parent c0d851751b
commit d67e231431

View file

@ -344,6 +344,7 @@ pub fn init() {
Arg::new("ns") Arg::new("ns")
.long("ns") .long("ns")
.required(true) .required(true)
.takes_value(true)
.forbid_empty_values(true) .forbid_empty_values(true)
.help("The namespace to export the data from"), .help("The namespace to export the data from"),
) )
@ -351,6 +352,7 @@ pub fn init() {
Arg::new("db") Arg::new("db")
.long("db") .long("db")
.required(true) .required(true)
.takes_value(true)
.forbid_empty_values(true) .forbid_empty_values(true)
.help("The database to export the data from"), .help("The database to export the data from"),
) )