diff options
-rw-r--r-- | lib/postrunner/Main.rb | 6 | ||||
-rw-r--r-- | lib/postrunner/UserProfileView.rb | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/postrunner/Main.rb b/lib/postrunner/Main.rb index 2f2092f..6cb4f90 100644 --- a/lib/postrunner/Main.rb +++ b/lib/postrunner/Main.rb @@ -158,7 +158,11 @@ EOT end - parser.parse!(args) + begin + parser.parse!(args) + rescue OptionParser::InvalidOption + Log.fatal "#{$!}" + end end def execute_command(args) diff --git a/lib/postrunner/UserProfileView.rb b/lib/postrunner/UserProfileView.rb index 81cc5ad..3ff4341 100644 --- a/lib/postrunner/UserProfileView.rb +++ b/lib/postrunner/UserProfileView.rb @@ -47,7 +47,7 @@ module PostRunner unit = { :metric => 'm', :statute => 'ft' }[@unit_system] height = profile.get_as('height', unit) t.cell('Height:', { :width => '40%' }) - t.cell("#{'%.1f' % height} #{unit}", { :width => '60%' }) + t.cell("#{'%.2f' % height} #{unit}", { :width => '60%' }) t.new_row end if profile.weight |