From 56a0036cb55fad022c05b961563b46d1c284e02d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 9 Apr 2021 11:33:07 +0200 Subject: Fix: clap value querying should match CLI spec Signed-off-by: Matthias Beyer --- src/commands/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/db.rs b/src/commands/db.rs index a8d8b3c..5961c77 100644 --- a/src/commands/db.rs +++ b/src/commands/db.rs @@ -323,7 +323,7 @@ fn jobs(conn_cfg: DbConnectionConfig, matches: &ArgMatches) -> Result<()> { // // If we get a filter for environment on CLI, we fetch all job ids that are associated with the // passed environment variables and make `sel` filter for those. - let sel = if let Some((name, val)) = matches.value_of("filter_env").map(crate::util::env::parse_to_env).transpose()? { + let sel = if let Some((name, val)) = matches.value_of("env_filter").map(crate::util::env::parse_to_env).transpose()? { let jids = schema::envvars::table .filter({ use crate::diesel::BoolExpressionMethods; -- cgit v1.2.3