Skip to content

Commit 17c078c

Browse files
authored
make positional parameters more searchable (#1859)
* make positional parameters more searchable
1 parent d071345 commit 17c078c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ When this script is run, Nushell will first run the `a` command to completion an
5656

5757
## Parameterizing Scripts
5858

59-
Script files can optionally contain a special "main" command. `main` will be run after any other Nu code, and is primarily used to add parameters to scripts. You can pass arguments to scripts after the script name (`nu <script name> <script args>`).
59+
Script files can optionally contain a special "main" command. `main` will be run after any other Nu code, and is primarily used to allow positional parameters and flags in scripts. You can pass arguments to scripts after the script name (`nu <script name> <script args>`).
6060

6161
For example:
6262

0 commit comments

Comments
 (0)