lib/fernet/cli.rb in fernet-cli-0.3 vs lib/fernet/cli.rb in fernet-cli-0.4
- old
+ new
@@ -16,10 +16,10 @@
exit(1)
end
def parse_args
op = OptionParser.new do |opts|
- opts.banner = "Usage: #{$0} [-p | -k <keyfile>] -i <infile> -o <outfile>"
+ opts.banner = "Usage: #{File.basename($0)} [-p | -k <keyfile>] -i <infile> -o <outfile>"
opts.on("-p", "--prompt", "Prompt for keys") do |prompt|
@options[:prompt] = prompt
end
opts.on("-k", "--keyfile KEYFILE") do |keyfile|