This commit is contained in:
Gavin Nishizawa 2023-06-26 13:45:15 -07:00
parent 65059546eb
commit b18c7e28b5
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ Renders the diagram to look like it was sketched by hand
Center the SVG in the containing viewbox, such as your browser screen
.Ns .
.It Fl -scale Ar -1
Set a fixed render scale (e.g. 0.5 to halve rendered size). If none provided, SVG will fit to screen
Scale the output. E.g., 0.5 to halve the default size. Default -1 means that SVG's will fit to screen and all others will use their default render size. Setting to 1 turns off SVG fitting to screen
.Ns .
.It Fl -font-regular
Path to .ttf file to use for the regular font. If none provided, Source Sans Pro Regular is used

View file

@ -107,7 +107,7 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
if err != nil {
return err
}
scaleFlag, err := ms.Opts.Float64("SCALE", "scale", "", -1, "set a fixed render scale (e.g. 0.5 to halve rendered size). If none provided, SVG will fit to screen.")
scaleFlag, err := ms.Opts.Float64("SCALE", "scale", "", -1, "scale the output. E.g., 0.5 to halve the default size. Default -1 means that SVG's will fit to screen and all others will use their default render size. Setting to 1 turns off SVG fitting to screen.")
if err != nil {
return err
}