Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e7c3cca

Browse files
committedFeb 3, 2025·
Minor CLI tweaks
Signed-off-by: Enrico Ghiorzi <[email protected]>
1 parent 66516b6 commit e7c3cca

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
 

‎Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ thiserror = "2.0.11"
2323
anyhow = { workspace = true }
2424
scan_fmt_xml = { version = "0.1.0", path = "scan_fmt_xml" }
2525
scan_fmt_jani = { version = "0.1.0", path = "scan_fmt_jani" }
26-
clap = { version = "4.5.27", features = ["derive"] }
26+
clap = { version = "4.5.28", features = ["derive"] }
2727
env_logger = "0.11.6"
2828
log = { workspace = true }
2929
indicatif = { version = "0.17.11", features = ["improved_unicode"] }

‎src/cli.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ use scan_fmt_xml::scan_core::{adaptive_bound, okamoto_bound, CsModelBuilder, Run
1313
enum Format {
1414
/// SCXML format
1515
Scxml,
16-
/// Jani format
16+
/// JANI format
1717
Jani,
1818
}
19+
1920
/// A statistical model checker for large concurrent systems
2021
#[derive(Parser)]
21-
#[command(author, version, about, long_about = None)]
22+
#[command(version, about, long_about = None)]
2223
pub struct Cli {
2324
/// Path of model's main XML file
2425
#[arg(value_hint = clap::ValueHint::DirPath, default_value = ".")]
2526
model: PathBuf,
26-
/// Model specification format to use
27+
/// Format used to specify the model
2728
#[arg(value_enum, short, long, default_value = "scxml")]
2829
format: Format,
2930
/// Confidence
@@ -42,7 +43,7 @@ pub struct Cli {
4243
#[arg(long = "save-traces", default_value = "false")]
4344
trace: bool,
4445
/// ASCII compatible output
45-
#[arg(long = "ascii", default_value = "false")]
46+
#[arg(long, default_value = "false")]
4647
ascii: bool,
4748
}
4849

@@ -121,9 +122,9 @@ fn print_progress_bar(
121122
ascii: bool,
122123
) {
123124
const ARROW: &str = "⎯→ ";
124-
const ASCII_ARROW: &str = "=> ";
125+
const ASCII_ARROW: &str = "-> ";
125126
const FINE_BAR: &str = "█▉▊▋▌▍▎▏ ";
126-
const ASCII_BAR: &str = "#= ";
127+
const ASCII_BAR: &str = "# ";
127128
const ASCII_SPINNER: &str = "|/-\\";
128129
let run_status = bar_state.lock().expect("lock state").clone();
129130

0 commit comments

Comments
 (0)