This commit is contained in:
Gavin Nishizawa 2023-06-14 16:30:29 -07:00
parent 78d44347ff
commit 4a751b1bd5
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ Print debug logs.
In watch mode, images used in icons are cached for subsequent compilations. This should be disabled if images might change
.Ns .
.It Fl -timeout Ar 120
The number of seconds before d2 will timeout.
The maximum number of seconds that D2 runs for before timing out and exiting. When rendering a large diagram, it is recommended to increase this value.
.Ns .
.It Fl h , -help
Print usage information and exit.

View file

@ -89,7 +89,7 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
if err != nil {
return err
}
timeoutFlag, err := ms.Opts.Int64("D2_TIMEOUT", "timeout", "", 120, "the number of seconds before d2 will timeout")
timeoutFlag, err := ms.Opts.Int64("D2_TIMEOUT", "timeout", "", 120, "the maximum number of seconds that D2 runs for before timing out and exiting. When rendering a large diagram, it is recommended to increase this value")
if err != nil {
return err
}