summaryrefslogtreecommitdiffstats
path: root/tool/src/sq.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tool/src/sq.rs')
-rw-r--r--tool/src/sq.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/sq.rs b/tool/src/sq.rs
index 27e7c49f..3e371927 100644
--- a/tool/src/sq.rs
+++ b/tool/src/sq.rs
@@ -484,7 +484,7 @@ fn main() -> Result<()> {
match m.subcommand() {
("get", Some(m)) => {
let keyid = m.value_of("keyid").unwrap();
- let id = openpgp::KeyID::from_hex(keyid);
+ let id = keyid.parse();
if id.is_err() {
eprintln!("Malformed key ID: {:?}\n\
(Note: only long Key IDs are supported.)",