summaryrefslogtreecommitdiffstats
path: root/tool/src/sq_cli.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-02-08 17:45:18 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-02-19 13:46:25 +0100
commit864bea75d9ca795d032cf145015068756fdf3799 (patch)
treea5713ec500f98d3727e3f465d18cf3b5f2c11c60 /tool/src/sq_cli.rs
parent9d0cf36e464676a4a939273e88f771a6b9f9fa58 (diff)
tool: New command sq inspect.
- sq inspect is similar to sq dump, but it tries to extract and display the high-level structure of the packet sequence in a format suitable for human consumption. - Fixes #87.
Diffstat (limited to 'tool/src/sq_cli.rs')
-rw-r--r--tool/src/sq_cli.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs
index d3489e6e..0da389fd 100644
--- a/tool/src/sq_cli.rs
+++ b/tool/src/sq_cli.rs
@@ -216,6 +216,16 @@ pub fn build() -> App<'static, 'static> {
.long("hex")
.short("x")
.help("Print a hexdump")))
+ .subcommand(SubCommand::with_name("inspect")
+ .about("Inspects a sequence of OpenPGP packets")
+ .arg(Arg::with_name("input").value_name("FILE")
+ .help("Sets the input file to use"))
+ .arg(Arg::with_name("keygrips")
+ .long("keygrips")
+ .help("Print keygrips of keys and subkeys"))
+ .arg(Arg::with_name("certifications")
+ .long("certifications")
+ .help("Print third-party certifications")))
.subcommand(SubCommand::with_name("split")
.about("Splits a message into OpenPGP packets")
.arg(Arg::with_name("input").value_name("FILE")