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 5f0bec9 commit 5796285
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bofk-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"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 --bin2hex input.bin output.txt\n\n"
"ruby bofk-cli.rb --bin2hex input.bin\n\n"

opts.on( '-h', '--help', "Display this screen \n" ) do
puts opts
Expand Down Expand Up @@ -130,7 +130,10 @@
puts ""

else
puts "ruby bofk-cli.rb --help\n\n"
decor = decoration.decorate("Help screen")
puts "#{decor[:head]}".light_blue + "#{decor[:title]}".white + "#{decor[:tail]}".light_blue
puts "#{optparse}"
puts "#{decor[:end]}".light_blue
end


Expand Down

0 comments on commit 5796285

Please sign in to comment.