Skip to content

Commit

Permalink
fix: turn manifest-path into optional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jun 24, 2021
1 parent 2810a92 commit bb44856
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/frontend/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ struct NewContract {
#[clap(short = 'd')]
pub debug: bool,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
}

Expand All @@ -91,6 +92,7 @@ struct LinkContract {
#[clap(short = 'd')]
pub debug: bool,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
}

Expand All @@ -102,6 +104,7 @@ struct ForkContract {
#[clap(short = 'd')]
pub debug: bool,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
// /// Fork contract and all its dependencies
// #[clap(short = 'r')]
Expand All @@ -114,6 +117,7 @@ struct Console {
#[clap(short = 'd')]
pub debug: bool,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
}

Expand All @@ -126,6 +130,7 @@ struct Test {
#[clap(long = "coverage")]
pub coverage: bool,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
/// Relaunch tests on updates
#[clap(long = "watch")]
Expand All @@ -143,6 +148,7 @@ struct Run {
/// Script to run
pub script: String,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
}

Expand All @@ -158,6 +164,7 @@ struct Deploy {
#[clap(long = "testnet", conflicts_with = "mocknet")]
pub testnet: bool,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
}

Expand All @@ -167,6 +174,7 @@ struct Check {
#[clap(short = 'd')]
pub debug: bool,
/// Path to Clarinet.toml
#[clap(long = "manifest-path")]
pub manifest_path: Option<String>,
}

Expand Down

0 comments on commit bb44856

Please sign in to comment.