Skip to content

Commit

Permalink
Enhance exceptions and outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
KINGSABRI committed Feb 1, 2013
1 parent 5796285 commit a9d588c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bofk-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
options[:create] = c
end
#--> Pattern offset
opts.on('-o', '--pattern-offset OFFSET', "Find Pattern offset string.") do |o|
opts.on('-o', '--pattern-offset OFFSET', "Find Pattern offset string.") do |o|
options[:offset] = o
end
#--> Hex to little endian characters converter
Expand All @@ -49,12 +49,12 @@
options[:bin2hex] = bin2hex
end
#--> Display the help screen
opts.banner = "Usage: ruby bofk-cli.rb [OPTIONS] ARGUMENT\n" +
"ex." +
opts.banner = "Usage: ruby bofk-cli.rb {OPTIONS} ARGUMENT\n" +
"ex." +
"ruby bofk-cli.rb --pattern-create 500\n" +
"ruby bofk-cli.rb --pattern-offset Aa4Z\n" +
"ruby bofk-cli.rb --hex2endl 0x41F2E377\n" +
"ruby bofk-cli.rb --hex2bin input.txt output.bin\n" +
"ruby bofk-cli.rb --hex2bin input.txt output.bin\n" +
"ruby bofk-cli.rb --bin2hex input.bin\n\n"

opts.on( '-h', '--help', "Display this screen \n" ) do
Expand Down

0 comments on commit a9d588c

Please sign in to comment.