copy
This commit is contained in:
parent
78d44347ff
commit
4a751b1bd5
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
In watch mode, images used in icons are cached for subsequent compilations. This should be disabled if images might change
|
||||||
.Ns .
|
.Ns .
|
||||||
.It Fl -timeout Ar 120
|
.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 .
|
.Ns .
|
||||||
.It Fl h , -help
|
.It Fl h , -help
|
||||||
Print usage information and exit.
|
Print usage information and exit.
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue