Skip to content

Commit 99fbc29

Browse files
committed
Add a debug flag to know what is happening
1 parent b87e595 commit 99fbc29

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

doc/man/ruby-install.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ https://github.com/postmodern/ruby-install#readme
9292
Downloads the latest ruby versions and checksums from the ruby-versions
9393
repository (https://github.com/postmodern/ruby-versions#readme).
9494

95+
`-d`, `--debug`
96+
Show each command being run (set -x)
97+
9598
`-V`, `--version`
9699
Prints the current ruby-install version.
97100

share/man/man1/ruby-install.1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ Downloads the latest ruby versions and checksums from the ruby\-versions
119119
repository (https:\[sl]\[sl]github\.com\[sl]postmodern\[sl]ruby\-versions\[sh]readme)\.
120120
.LP
121121
.TP
122+
\fB-d\fR, \fB--debug\fR
123+
Show each command being run (set -x)
124+
.LP
125+
.TP
122126
\fB-V\fR, \fB--version\fR
123127
Prints the current ruby\-install version\.
124128
.LP

share/ruby-install/ruby-install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Options:
5252
--no-install-deps Do not install build dependencies before installing Ruby
5353
--no-reinstall Skip installation if another Ruby is detected in same location
5454
-L, --latest Downloads the latest ruby versions and checksums
55+
-d, --debug Show each command being run (set -x)
5556
-V, --version Prints the version
5657
-h, --help Prints this message
5758
@@ -179,6 +180,10 @@ function parse_options()
179180
force_update=1
180181
shift
181182
;;
183+
-d|--debug)
184+
set -x
185+
shift
186+
;;
182187
-V|--version)
183188
echo "ruby-install: $ruby_install_version"
184189
exit

0 commit comments

Comments
 (0)