Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quambene committed Apr 3, 2024
1 parent 8f8b7f1 commit cf61e19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ pub fn app() -> Command {
.long(arg::SSH_TUNNEL)
.value_name("port")
.num_args(1)
.required(true)
.required(false)
.help("Connect to db through ssh tunnel"),
Arg::new(arg::SAVE)
.long(arg::SAVE)
.num_args(1)
.num_args(0)
.required(false)
.help("Save query result"),
Arg::new(arg::SAVE_DIR)
Expand All @@ -77,25 +77,25 @@ pub fn app() -> Command {
Arg::new(arg::FILE_TYPE)
.long(arg::FILE_TYPE)
.num_args(1)
.required(true)
.required(false)
.default_value("csv")
.value_parser(["csv", "jpg", "png"])
.help("Specifies the file type for saved query"),
Arg::new(arg::IMAGE_COLUMN)
.long(arg::IMAGE_COLUMN)
.requires_ifs([(arg::FILE_TYPE, "jpg"), (arg::FILE_TYPE, "png")])
.num_args(1)
.required(true)
.required(false)
.required_if_eq_any([(arg::FILE_TYPE, "jpg"), (arg::FILE_TYPE, "png")])
.help("Specifies the column in which to look for images"),
Arg::new(arg::IMAGE_NAME)
.long(arg::IMAGE_NAME)
.requires_ifs([(arg::FILE_TYPE, "jpg"), (arg::FILE_TYPE, "png")])
.num_args(1)
.required(true)
.required(false)
.required_if_eq_any([(arg::FILE_TYPE, "jpg"), (arg::FILE_TYPE, "png")])
.help("Specifies the column used for the image name"),
Arg::new(arg::DISPLAY)
.long(arg::DISPLAY)
.num_args(1)
.num_args(0)
.required(false)
.help("Print query result to terminal"),
Arg::new(arg::VERBOSE)
Expand Down

0 comments on commit cf61e19

Please sign in to comment.