diff --git a/src/modes/list.rs b/src/modes/list.rs index f343a7f..065b820 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -1,4 +1,5 @@ -use anyhow::{anyhow, Result}; +use crate::ColumnType; +use crate::db::{get_item_tags, get_item_meta}; use chrono::Local; use clap::Command; use log::debug; @@ -24,7 +25,7 @@ pub fn mode_list( ) -> Result<()> { if !ids.is_empty() { cmd.error( - ErrorKind::InvalidValue, + ErrorKind::InvalidInput, "ID given, you can only supply tags when using --list", ) .exit();