Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add short --url syntax

"cons http://foo.com/bar.mp3" is now equivalent to "cons --url http://foo.com/bar.mp3"
  • Loading branch information...
commit 331c64338973663c12e1b8ca116524215bce1965 1 parent a0b6fd9
@scottjad authored
Showing with 5 additions and 1 deletion.
  1. +1 −1  README.org
  2. +4 −0 cons
View
2  README.org
@@ -24,7 +24,7 @@
*** Show library
: cons
*** Add item from url
- : cons --url http://www.youtube.com/watch?v=1xVw6PsSinI
+ : cons http://www.youtube.com/watch?v=1xVw6PsSinI
*** Play item
: cons 0
*** Replay last item played
View
4 cons
@@ -58,6 +58,10 @@ if SHORTS.keys.member? ARGV[0]
ARGV[0] = SHORTS[ARGV[0]]
end
+if /^http/ =~ ARGV[0]
+ ARGV.unshift("--url")
+end
+
# defaults
OPTIONS = {}
Please sign in to comment.
Something went wrong with that request. Please try again.