Skip to content

Commit

Permalink
added usage message for snippet remote add
Browse files Browse the repository at this point in the history
  • Loading branch information
hans committed Dec 24, 2008
1 parent 88355d3 commit cbec699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/snippet/remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

case $args[0]
when 'add'
unless $args[1]
puts 'Usage: snippet remote add <url>'
exit 1
end
`cd #{$basedir}; git remote add origin #{$args[1]}`
when 'rm'
`cd #{$basedir}; git remote rm origin`
Expand Down

0 comments on commit cbec699

Please sign in to comment.