ileitch-hijack 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/hijack +7 -1
- metadata +1 -1
data/bin/hijack
CHANGED
@@ -4,11 +4,17 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
4
4
|
require 'hijack'
|
5
5
|
|
6
6
|
options = {}
|
7
|
+
usage = 'Usage: hijack [options] <PID>'
|
7
8
|
ARGV.clone.options do |opts|
|
8
|
-
opts.banner =
|
9
|
+
opts.banner = usage
|
9
10
|
opts.on("--gdb-debug", "Print gdb activity to the console.") { |v| options[:gdb_debug] = v }
|
10
11
|
opts.on("-h", "--help", "Show this help message.") { puts opts; exit }
|
11
12
|
opts.parse!
|
12
13
|
end
|
13
14
|
|
15
|
+
if ARGV.last.nil?
|
16
|
+
puts usage
|
17
|
+
exit 1
|
18
|
+
end
|
19
|
+
|
14
20
|
Hijack.start(ARGV.last, options)
|