1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Merge pull request #1275 from Zokrates/show-mpc-help

Show help when running `zokrates mpc`
This commit is contained in:
Thibaut Schaeffer 2023-02-14 12:11:13 +01:00 committed by GitHub
commit 0fe82a7d60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1 @@
Show help when running `zokrates mpc`

View file

@ -1,4 +1,4 @@
use clap::{App, ArgMatches, SubCommand};
use clap::{App, AppSettings, ArgMatches, SubCommand};
pub mod beacon;
pub mod contribute;
@ -9,6 +9,7 @@ pub mod verify;
pub fn subcommand() -> App<'static, 'static> {
SubCommand::with_name("mpc")
.about("Multi-party computation (MPC) protocol")
.setting(AppSettings::SubcommandRequiredElseHelp)
.subcommands(vec![
init::subcommand().display_order(1),
contribute::subcommand().display_order(2),