This commit is contained in:
Bernard Xie 2022-11-17 14:32:56 -08:00
parent 93ed44c978
commit dc8fdda949
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C
2 changed files with 2 additions and 6 deletions

View file

@ -21,11 +21,7 @@
.Nm
compiles and renders
.Ar file.d2
to
.Ar file.svg
or
.Ar png
.Ns .
to svg or png.
.Pp
Pass - to have
.Nm

View file

@ -17,7 +17,7 @@ func help(ms *xmain.State) {
fmt.Fprintf(ms.Stdout, `Usage:
%s [--watch=false] [--theme=0] file.d2 [file.svg|file.png]
%[1]s compiles and renders file.d2 to file.svg or png
%[1]s compiles and renders file.d2 to svg or png.
Use - to have d2 read from stdin or write to stdout.
Flags: