diff --git a/src/main.rs b/src/main.rs index 9034e4e..4560300 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,7 @@ fn run_command(command: opts::Command) -> Result { let local = Local::auto_open()?; local.show_own_ids()?; } - opts::Command::Trust(args) => { + opts::Command::Id(opts::Id::Trust(args)) => { create_trust_proof(args.pub_ids, Trust, &args.common_proof_create)?; } opts::Command::Distrust(args) => { diff --git a/src/opts.rs b/src/opts.rs index 1e0ed4e..e01f8af 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -278,6 +278,10 @@ pub enum Id { /// Edit README.md of the current ID #[structopt(name = "edit")] Edit(Edit), + + /// Trust an Id + #[structopt(name = "trust")] + Trust(Trust), } #[derive(Debug, StructOpt, Clone)] @@ -405,10 +409,6 @@ pub enum Command { #[structopt(name = "query")] Query(Query), - /// Trust an Id - #[structopt(name = "trust")] - Trust(Trust), - /// Distrust an Id #[structopt(name = "distrust")] Distrust(Trust), @@ -421,7 +421,7 @@ pub enum Command { #[structopt(name = "publish", alias = "push")] Publish, - /// Import proofs, ... + /// Import proofs #[structopt(name = "import")] Import(Import),