Skip to content

Commit

Permalink
Make --help option do the same thing as "chit chit"
Browse files Browse the repository at this point in the history
  • Loading branch information
msabramo committed Jan 27, 2011
1 parent fc62fdd commit 17b1317
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/chit.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def parse_args(args)
update and return if args.delete('--update') update and return if args.delete('--update')


@sheet = args.shift || 'chit' @sheet = args.shift || 'chit'
@sheet = 'chit' if @sheet == '--help'
is_private = (@sheet =~ /^@(.*)/) is_private = (@sheet =~ /^@(.*)/)
@sheet = is_private ? $1 : @sheet @sheet = is_private ? $1 : @sheet


Expand Down

0 comments on commit 17b1317

Please sign in to comment.