Skip to content

Commit

Permalink
Add one character option flags for new PAP features by @MatthewBlanchard
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlcctrlv committed Oct 2, 2023
1 parent b413fb7 commit 047ef6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ OPTIONS:
--subdivide-angle <subdivide_angle>
-°, --subdivide-angle <subdivide_angle>
<f64> how many degrees of change in direction to subdivide the patterns at. [default: 0]
Expand All @@ -144,7 +144,7 @@ OPTIONS:
-Y, --sy <sy>
<f64> how much we scale our input pattern on the y-axis. [default: 1]
--split-at-discontinuity
-|, --split-at-discontinuity
Handle discontinuities by splitting the path.
-n, --noffset <normal-offset>
Expand All @@ -171,10 +171,10 @@ OPTIONS:
-Z, --erase-overlapping
Erase the area underneath patterns that would overlap.
--erase-overlapping-stroke <erase_overlapping_stroke_width>
-z, --erase-overlapping-stroke <erase_overlapping_stroke_width>
<float> how much we should expand the pattern when erasing overlapping patterns.
--erase-overlapping-area-percent <erase_overlapping_area_percent>
-%, --erase-overlapping-area-percent <erase_overlapping_area_percent>
<float> how much we should expand the pattern when erasing overlapping patterns.
-Q, --one-pass
Expand Down
4 changes: 4 additions & 0 deletions src/pattern_along_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ pub fn clap_app() -> clap::App<'static> {
.validator(super::arg_validator_usize)
.help("<usize> how many times to subdivide the patterns at their midpoint. [default: 0]\n\n\n"))
.arg(Arg::new("subdivide_angle")
.short('°')
.long("subdivide-angle")
.takes_value(true)
.default_value("1")
Expand All @@ -102,6 +103,7 @@ pub fn clap_app() -> clap::App<'static> {
.validator(super::arg_validator_positive_f64)
.help("<f64> how much we scale our input pattern on the y-axis."))
.arg(Arg::new("split_at_discontinuity")
.short('|')
.long("split-at-discontinuity")
.help("Handle discontinuities by splitting the path.")
)
Expand Down Expand Up @@ -148,12 +150,14 @@ pub fn clap_app() -> clap::App<'static> {
.help("Erase the area underneath patterns that would overlap."))
.arg(Arg::new("erase_overlapping_stroke_width")
.long("erase-overlapping-stroke")
.short('z')
.takes_value(true)
.default_value("5")
.hide_default_value(true)
.validator(super::arg_validator_f64)
.help("<float> how much we should expand the pattern when erasing overlapping patterns."))
.arg(Arg::new("erase_overlapping_area_percent")
.short('%')
.long("erase-overlapping-area-percent")
.takes_value(true)
.default_value("5")
Expand Down

0 comments on commit 047ef6d

Please sign in to comment.