Skip to content

Commit

Permalink
add --no-op/-n arg
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed May 15, 2024
1 parent 4e7a16c commit e1bc551
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Options:
Don't update any existing default toolchain after install
--no-modify-path
Don't configure the PATH environment variable
-n, --no-op
Terminates the script immediately without any operation. This is useful when calling next to `source`
-h, --help
Print help
-V, --version
Expand Down Expand Up @@ -110,6 +112,9 @@ main() {
local need_tty=yes
for arg in "$@"; do
case "$arg" in
--no-op|-n)
exit 0
;;
--help)
usage
exit 0
Expand Down

0 comments on commit e1bc551

Please sign in to comment.