@@ -86,14 +86,16 @@ def self.parse_argv argv
8686 config [ :host ] = host
8787 end
8888
89+ rdbg = 'rdbg'
90+
8991 o . separator ''
9092 o . separator ' Debug console mode runs Ruby program with the debug console.'
9193 o . separator ''
92- o . separator " #{ $0 } target.rb foo bar starts like 'ruby target.rb foo bar'."
93- o . separator " #{ $0 } -- -r foo -e bar starts like 'ruby -r foo -e bar'."
94- o . separator " #{ $0 } -O target.rb foo bar starts and accepts attaching with UNIX domain socket."
95- o . separator " #{ $0 } -O --port 1234 target.rb foo bar starts accepts attaching with TCP/IP localhost:1234."
96- o . separator " #{ $0 } -O --port 1234 -- -r foo -e bar starts accepts attaching with TCP/IP localhost:1234."
94+ o . separator " #{ rdbg } target.rb foo bar starts like 'ruby target.rb foo bar'."
95+ o . separator " #{ rdbg } -- -r foo -e bar starts like 'ruby -r foo -e bar'."
96+ o . separator " #{ rdbg } -O target.rb foo bar starts and accepts attaching with UNIX domain socket."
97+ o . separator " #{ rdbg } -O --port 1234 target.rb foo bar starts accepts attaching with TCP/IP localhost:1234."
98+ o . separator " #{ rdbg } -O --port 1234 -- -r foo -e bar starts accepts attaching with TCP/IP localhost:1234."
9799
98100 o . separator ''
99101 o . separator 'Attach mode:'
@@ -104,12 +106,12 @@ def self.parse_argv argv
104106 o . separator ''
105107 o . separator ' Attach mode attaches the remote debug console to the debuggee process.'
106108 o . separator ''
107- o . separator " '#{ $0 } -A' tries to connect via UNIX domain socket."
108- o . separator " #{ ' ' * $0 . size } If there are multiple processes are waiting for the"
109- o . separator " #{ ' ' * $0 . size } debugger connection, list possible debuggee names."
110- o . separator " '#{ $0 } -A path' tries to connect via UNIX domain socket with given path name."
111- o . separator " '#{ $0 } -A port' tries to connect localhost:port via TCP/IP."
112- o . separator " '#{ $0 } -A host port' tries to connect host:port via TCP/IP."
109+ o . separator " '#{ rdbg } -A' tries to connect via UNIX domain socket."
110+ o . separator " #{ ' ' * rdbg . size } If there are multiple processes are waiting for the"
111+ o . separator " #{ ' ' * rdbg . size } debugger connection, list possible debuggee names."
112+ o . separator " '#{ rdbg } -A path' tries to connect via UNIX domain socket with given path name."
113+ o . separator " '#{ rdbg } -A port' tries to connect to localhost:port via TCP/IP."
114+ o . separator " '#{ rdbg } -A host port' tries to connect to host:port via TCP/IP."
113115 end
114116
115117 opt . parse! ( argv )
0 commit comments