Skip to content

Commit 071e95d

Browse files
Fix a few minor issues found by Claude (#2208)
1 parent 5f86c57 commit 071e95d

File tree

1 file changed

+10
-7
lines changed
  • components/clarinet-cli/src/frontend

1 file changed

+10
-7
lines changed

components/clarinet-cli/src/frontend/cli.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ enum Command {
7777
/// Load contracts in a REPL for an interactive session
7878
#[clap(name = "console", aliases = &["poke"], bin_name = "console")]
7979
Console(Console),
80-
/// Check contracts syntax
80+
/// Run syntax checking, type checking, and lints on contracts
8181
#[clap(name = "check", bin_name = "check")]
8282
Check(Check),
83-
/// Start a local Devnet network for interacting with your contracts from your browser
83+
/// Start a local Devnet network (deprecated, use 'clarinet devnet start')
8484
#[clap(name = "integrate", bin_name = "integrate")]
8585
Integrate(DevnetStart),
8686
/// Subcommands for Devnet usage
@@ -99,11 +99,13 @@ enum Command {
9999

100100
#[derive(Parser, PartialEq, Clone, Debug)]
101101
struct Formatter {
102+
/// Path to Clarinet.toml
102103
#[clap(long = "manifest-path", short = 'm')]
103104
pub manifest_path: Option<String>,
104105
/// If specified, format only this file
105106
#[clap(long = "file", short = 'f')]
106107
pub file: Option<String>,
108+
/// Maximum line length
107109
#[clap(long = "max-line-length", short = 'l')]
108110
pub max_line_length: Option<usize>,
109111
#[clap(long = "indent", short = 'i', conflicts_with = "use_tabs")]
@@ -199,7 +201,7 @@ enum Contracts {
199201

200202
#[derive(Subcommand, PartialEq, Clone, Debug)]
201203
enum Requirements {
202-
/// Interact with contracts published on Mainnet
204+
/// Interact with contracts deployed on Mainnet
203205
#[clap(name = "add", bin_name = "add")]
204206
AddRequirement(AddRequirement),
205207
}
@@ -226,6 +228,7 @@ struct DevnetPackage {
226228
/// Output json file name
227229
#[clap(long = "name", short = 'n')]
228230
pub package_file_name: Option<String>,
231+
/// Path to Clarinet.toml
229232
#[clap(long = "manifest-path", short = 'm')]
230233
pub manifest_path: Option<String>,
231234
}
@@ -291,15 +294,15 @@ struct GenerateDeployment {
291294
conflicts_with = "mainnet"
292295
)]
293296
pub devnet: bool,
294-
/// Generate a deployment file for devnet, using settings/Testnet.toml
297+
/// Generate a deployment file for testnet, using settings/Testnet.toml
295298
#[clap(
296299
long = "testnet",
297300
conflicts_with = "simnet",
298301
conflicts_with = "devnet",
299302
conflicts_with = "mainnet"
300303
)]
301304
pub testnet: bool,
302-
/// Generate a deployment file for devnet, using settings/Mainnet.toml
305+
/// Generate a deployment file for mainnet, using settings/Mainnet.toml
303306
#[clap(
304307
long = "mainnet",
305308
conflicts_with = "simnet",
@@ -515,7 +518,7 @@ struct Check {
515518

516519
#[derive(Parser, PartialEq, Clone, Debug)]
517520
struct Completions {
518-
/// Specify which shell to generation completions script for
521+
/// Specify which shell to generate completions script for
519522
#[clap(ignore_case = true)]
520523
pub shell: Shell,
521524
}
@@ -1190,7 +1193,7 @@ pub fn main() {
11901193
}
11911194

11921195
if success {
1193-
println!("{} Syntax of contract successfully checked", green!("✔"))
1196+
println!("{} Contract successfully checked", green!("✔"))
11941197
} else {
11951198
std::process::exit(1);
11961199
}

0 commit comments

Comments
 (0)