Skip to content

Commit e1bc551

Browse files
committed
add --no-op/-n arg
Signed-off-by: onur-ozkan <[email protected]>
1 parent 4e7a16c commit e1bc551

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rustup-init.sh

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Options:
5858
Don't update any existing default toolchain after install
5959
--no-modify-path
6060
Don't configure the PATH environment variable
61+
-n, --no-op
62+
Terminates the script immediately without any operation. This is useful when calling next to `source`
6163
-h, --help
6264
Print help
6365
-V, --version
@@ -110,6 +112,9 @@ main() {
110112
local need_tty=yes
111113
for arg in "$@"; do
112114
case "$arg" in
115+
--no-op|-n)
116+
exit 0
117+
;;
113118
--help)
114119
usage
115120
exit 0

0 commit comments

Comments
 (0)