diff options
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | packages/svgbob_cli/src/main.rs | 10 |
2 files changed, 10 insertions, 2 deletions
@@ -908,7 +908,7 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "svgbob" -version = "0.7.0" +version = "0.7.1" dependencies = [ "indexmap", "itertools", diff --git a/packages/svgbob_cli/src/main.rs b/packages/svgbob_cli/src/main.rs index 15a0bb9..08e6031 100644 --- a/packages/svgbob_cli/src/main.rs +++ b/packages/svgbob_cli/src/main.rs @@ -43,10 +43,14 @@ fn main() { .long("font-size") .takes_value(true) .help("text will be rendered with this font size (default: 14)")) - .arg(Arg::with_name("stroke-width") + .arg(Arg::with_name("stroke-width") .long("stroke-width") .takes_value(true) .help("stroke width for all lines (default: 2)")) + .arg(Arg::with_name("stroke-color") + .long("stroke-color") + .takes_value(true) + .help("stroke color for all lines (default: 'black')")) .arg(Arg::with_name("scale") .long("scale") .takes_value(true) @@ -123,6 +127,10 @@ fn main() { settings.stroke_width = stroke_width; } + if let Some(stroke_color) = parse_value_of(&args, "stroke-color") { + settings.stroke_color = stroke_color; + } + let scale: Option<f32> = parse_value_of(&args, "scale"); if let Some(s) = scale { settings.scale *= s; |