Skip to content

Commit 9c4c2ff

Browse files
committed
Update README with "accept defaults" on autoscan
1 parent 8af3d3a commit 9c4c2ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ Example: `jenv link javac`
7272
Example: `jenv uninstall jdk17`
7373

7474
11) **Automatically search for java versions to be added**
75-
*jenv autoscan `?<path>?`*
75+
*jenv autoscan [--yes|-y] `?<path>?`*
7676
Example: `jenv autoscan "C:\Program Files\Java"`
7777
Example: `jenv autoscan` // Will search entire system
78+
Example: `jenv autoscan -y "C:\Program Files\Java"` // Will accept defaults
7879
## How does this work?
7980
This script creates a java.bat file that calls the java.exe with the correct version
8081
When the ps script changes env vars they get exported to tmp files and applied by the batch file

0 commit comments

Comments
 (0)