diff --git a/src/main.rs b/src/main.rs index 4560300..4d0a7be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,7 @@ fn run_command(command: opts::Command) -> Result { opts::Command::Id(opts::Id::Trust(args)) => { create_trust_proof(args.pub_ids, Trust, &args.common_proof_create)?; } - opts::Command::Distrust(args) => { + opts::Command::Id(opts::Id::Distrust(args)) => { create_trust_proof(args.pub_ids, Distrust, &args.common_proof_create)?; } opts::Command::Update(_) => { diff --git a/src/opts.rs b/src/opts.rs index e01f8af..e43e7f0 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -282,6 +282,10 @@ pub enum Id { /// Trust an Id #[structopt(name = "trust")] Trust(Trust), + + /// Distrust an Id + #[structopt(name = "distrust")] + Distrust(Trust), } #[derive(Debug, StructOpt, Clone)] @@ -409,10 +413,6 @@ pub enum Command { #[structopt(name = "query")] Query(Query), - /// Distrust an Id - #[structopt(name = "distrust")] - Distrust(Trust), - /// Fetch proofs from external sources #[structopt(name = "fetch")] Fetch(Fetch),