Permalink
Browse files

Improve --help

  • Loading branch information...
1 parent 1171629 commit dfeb5ee70ee635132a9e83b013e5c28cc06b4711 @mistydemeo committed Jun 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/courex
View
@@ -5,10 +5,15 @@ require 'slop'
require 'courex'
opts = Slop.parse! do
+ banner "courex -u username -p password <tracking number>"
on :s, :stdout, 'Write to stdout'
on :u, :username, "Username", argument: true
on :p, :password, "Password", argument: true
on :debug, 'Print XML to send to stdout'
+ on :h, :help, "Display this message" do
+ puts help
+ exit 0
+ end
end
if !ARGV[0]

0 comments on commit dfeb5ee

Please sign in to comment.