Skip to content

Commit f9d8f06

Browse files
committed
Document -- to use negative inputs.
Also explicitly write `leo run main 1u32 2u32` rather than just mysteriously showing its output.
1 parent 0f86892 commit f9d8f06

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

documentation/cli/00_overview.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ leo run {$TRANSITION} {$INPUTS}
156156
```
157157
This command does not synthesize the program circuit or generate proving and verifying keys.
158158

159+
For the default program created by `leo new`, this command
160+
```bash
161+
leo run main 1u32 2u32
162+
```
163+
will generate this output
159164

160165
```bash title="console output:"
161166
Leo ✅ Compiled 'main.leo' into Aleo instructions
@@ -169,6 +174,13 @@ This command does not synthesize the program circuit or generate proving and ver
169174
Leo ✅ Finished 'hello.aleo/main' (in "/hello/build")
170175
```
171176

177+
If one or more of your inputs are negatives, and consequently begin with a `-`,
178+
you may separate the inputs with a `--` so that the command line parser
179+
won't attempt to parse them as options:
180+
```bash
181+
leo run ${TRANSITION} -- {$INPUTS}
182+
```
183+
172184
## `leo execute`
173185
[Back to Top](#commands)
174186
:::tip
@@ -320,4 +332,4 @@ Checking latest released version... v1.8.3
320332
321333
:::warning
322334
`leo example` has been deprecated and will no longer be supported.
323-
:::
335+
:::

0 commit comments

Comments
 (0)