Skip to content
Browse files

use / as a separator between bus and device.

git-svn-id: svn://svn.a-k-r.org/akr/ruby-usb/trunk@444 0ecacc03-ac1b-0410-941d-e442c79421a6
  • Loading branch information...
1 parent 2d24edd commit 7cb6cadd86f1cef7580d6e93b42dea424d842d20 @akr committed Jan 10, 2007
Showing with 4 additions and 4 deletions.
  1. +4 −4 sample/usb-power
View
8 sample/usb-power
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
-# usage: usb-power bus:device port on|off
+# usage: usb-power bus/device port on|off
#
# example:
-# usb-power 004:006 2 on
-# usb-power 004:006 2 off
+# usb-power 004/006 2 on
+# usb-power 004/006 2 off
require 'usb'
require 'optparse'
@@ -33,7 +33,7 @@ bus_device = ARGV.shift
port = ARGV.shift.to_i
on_off = ARGV.shift
-/:/ =~ bus_device
+%r{/} =~ bus_device
bus = $`.to_i
device = $'.to_i

0 comments on commit 7cb6cad

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