Skip to content

Commit

Permalink
[glyphs2ufo] add --no-propagate-anchors CLI option
Browse files Browse the repository at this point in the history
Fixes #906
  • Loading branch information
anthrotype committed Feb 7, 2024
1 parent a944fd3 commit 48ba8f1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Lib/glyphsLib/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,26 @@ def main(args=None):
"roundtripping between Glyphs and UFOs."
),
)
group.add_argument(
anchor_group = group.add_mutually_exclusive_group()
anchor_group.add_argument(
"--propagate-anchors",
default=None,
action="store_true",
help=(
"Copy anchors from underlying components to actual "
"glyph. Glyphs would do this implicitly, only use if you need "
"full control over all anchors."
"Copy anchors from underlying components to actual glyph "
"(Glyphs would do this implicitly upon export). By default, if this option "
"is not explicitly used, glyphs2ufo checks the 'Propagate Anchors' font "
"custom parameter and if unset or set to 1 (true) then the anchors get "
"propagated. Pass this option to enable this overriding the parameter."
),
)
anchor_group.add_argument(
"--no-propagate-anchors",
dest="propagate_anchors",
default=None,
action="store_false",
help="Disable anchor propagation regardless of any custom parameter.",
)
gdef_gen_group = group.add_mutually_exclusive_group()
gdef_gen_group.add_argument(
"--generate-GDEF",
Expand Down

0 comments on commit 48ba8f1

Please sign in to comment.