Skip to content

Commit

Permalink
fixes #57 clap errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy authored Aug 16, 2021
1 parent 06ed539 commit e4a94f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modelator/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ pub struct CliOptions {
#[derive(Debug, Subcommand)]
enum Modules {
/// Generate TLA+ test cases and parse TLA+ traces.
#[clap(subcommand)]
Tla(TlaMethods),
/// Generate TLA+ traces using Apalache.
#[clap(subcommand)]
Apalache(ApalacheMethods),
/// Generate TLA+ traces using TLC.
#[clap(subcommand)]
Tlc(TlcMethods),
}

#[derive(Debug, Clap)]
#[derive(Debug, Subcommand)]
#[clap(setting = AppSettings::DisableHelpSubcommand)]
enum TlaMethods {
/// Generate TLA+ tests.
Expand All @@ -43,7 +46,7 @@ enum TlaMethods {
},
}

#[derive(Debug, Clap)]
#[derive(Debug, Subcommand)]
#[clap(setting = AppSettings::DisableHelpSubcommand)]
enum ApalacheMethods {
/// Generate TLA+ trace from a TLA+ test.
Expand All @@ -60,7 +63,7 @@ enum ApalacheMethods {
},
}

#[derive(Debug, Clap)]
#[derive(Debug, Subcommand)]
#[clap(setting = AppSettings::DisableHelpSubcommand)]
enum TlcMethods {
/// Generate TLA+ trace from a TLA+ test.
Expand Down

0 comments on commit e4a94f9

Please sign in to comment.