From dc8fdda9496bcfcc1d636473a19cc79cec7a5cb7 Mon Sep 17 00:00:00 2001 From: Bernard Xie Date: Thu, 17 Nov 2022 14:32:56 -0800 Subject: [PATCH] fix copy --- ci/release/template/man/d2.1 | 6 +----- cmd/d2/help.go | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ci/release/template/man/d2.1 b/ci/release/template/man/d2.1 index 918828661..6d548cb0f 100644 --- a/ci/release/template/man/d2.1 +++ b/ci/release/template/man/d2.1 @@ -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 diff --git a/cmd/d2/help.go b/cmd/d2/help.go index ba80bc50a..69e33bb98 100644 --- a/cmd/d2/help.go +++ b/cmd/d2/help.go @@ -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: