bin/pwn_gqrx_scanner in pwn-0.5.164 vs bin/pwn_gqrx_scanner in pwn-0.5.165
- old
+ new
@@ -6,11 +6,11 @@
require 'optparse'
opts = {}
OptionParser.new do |options|
options.banner = "USAGE:
- #{$PROGRAM_NAME} [opts]
+ #{File.basename($PROGRAM_NAME)} [opts]
"
options.on('-aPROFILE', '--assume-profile=PROFILE', '<Required if "--target-freq" is Nil - Profile to assume for common radio protocols. Use "--list-profiles" to display supported protocols (Defaults to nil)') do |p|
opts[:profile] = p
end
@@ -75,10 +75,10 @@
opts[:baseband_gain] = b
end
end.parse!
if opts.empty?
- puts `#{$PROGRAM_NAME} --help`
+ puts `#{File.basename($PROGRAM_NAME)} --help`
exit 1
end
begin
pwn_provider = 'ruby-gem'