Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clear ARGV so we can 'gets' later

  • Loading branch information...
commit 113d3e2276fe8520033cf5ceeeb9f5f3cc51236d 1 parent c47dad4
Chris Kampmeier chrisk authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/git-pair
5 bin/git-pair
View
@@ -23,14 +23,15 @@ begin
GitPair::Helpers.display_string_for_current_info.split("\n"))]
end
- unused_options = parser.parse!
+ unused_options = parser.parse!.dup
+ ARGV.clear
if GitPair::Commands.config_change_made?
puts GitPair::Helpers.display_string_for_config
elsif unused_options.any?
GitPair::Commands.switch(unused_options)
puts GitPair::Helpers.display_string_for_current_info
- elsif ARGV.empty?
+ else
puts parser.help
end
Please sign in to comment.
Something went wrong with that request. Please try again.