Skip to content
Browse files

added usage message for `snippet remote add`

  • Loading branch information...
1 parent 88355d3 commit cbec6994ff4d1582ed95c2efc639c3bcac839efc @hans committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/snippet/remote.rb
View
4 lib/snippet/remote.rb
@@ -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`

0 comments on commit cbec699

Please sign in to comment.
Something went wrong with that request. Please try again.