Tweak unknown command message

This commit is contained in:
Adam Vandenberg 2010-09-22 08:58:11 -07:00
parent 8eaa812711
commit f50f2f8d52

View File

@ -316,10 +316,10 @@ begin
end
# Check for git commands
if ['branch', 'checkout', 'pull', 'push', 'rebase', 'reset'].include? arg
onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)"
if %w(branch checkout pull push rebase reset).include? arg
onoe "Unknown command '#{arg}' (did you mean 'git #{arg}'?)"
else
onoe "Unknown command: #{arg}"
onoe "Unknown command '#{arg}'"
end
end