Skip to content
Permalink
Browse files

Add message when no fields are used

  • Loading branch information...
Raggaer committed May 31, 2019
1 parent d45baf3 commit 3a784dbf4da8e9c3ab877ba1937ad2d35629a5c2
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/command/get/item.rs
@@ -37,6 +37,7 @@ fn parse_get_item_output(
// Check if user only wants the password
if password_only {
crate::clipboard::write(item.get_field("password".to_string()))?;
println!("Item password copied to clipboard");
}

match fields {
@@ -54,7 +55,7 @@ fn parse_get_item_output(
}
}
}
None => (),
None => println!("Missing field items to retrieve (--fields)"),
}
Ok(())
}

0 comments on commit 3a784db

Please sign in to comment.
You can’t perform that action at this time.