Cleanup whitespace issues
This commit is contained in:
parent
7c71045d19
commit
f8fa7e55e5
1 changed files with 8 additions and 8 deletions
16
xboxdrvctl
16
xboxdrvctl
|
@ -37,23 +37,23 @@ group.add_option("-S", "--status",
|
|||
help="print controller status")
|
||||
|
||||
group.add_option("-s", "--slot", metavar="SLOT", type="int",
|
||||
dest="slot",
|
||||
dest="slot",
|
||||
help="use slot SLOT for actions")
|
||||
|
||||
group.add_option("-l", "--led", metavar="NUM", type="int",
|
||||
dest="led",
|
||||
dest="led",
|
||||
help="set LED")
|
||||
|
||||
group.add_option("-r", "--rumble", metavar="L:R",
|
||||
dest="rumble",
|
||||
group.add_option("-r", "--rumble", metavar="L:R",
|
||||
dest="rumble",
|
||||
help="print controller status")
|
||||
|
||||
group.add_option("-c", "--config", metavar="NUM", type="int",
|
||||
dest="config",
|
||||
dest="config",
|
||||
help="switches to controller configuration NUM")
|
||||
|
||||
group.add_option("--shutdown", action="store_true",
|
||||
dest="shutdown",
|
||||
dest="shutdown",
|
||||
help="shuts down the daemon")
|
||||
|
||||
parser.add_option_group(group)
|
||||
|
@ -69,7 +69,7 @@ elif options.bus == "auto":
|
|||
try:
|
||||
bus.get_object("org.seul.Xboxdrv", '/org/seul/Xboxdrv/Daemon')
|
||||
except dbus.exceptions.DBusException:
|
||||
bus = dbus.SystemBus()
|
||||
bus = dbus.SystemBus()
|
||||
else:
|
||||
print("Error: invalid argument to --bus. Must be 'auto', 'session, or 'system'")
|
||||
exit()
|
||||
|
@ -87,7 +87,7 @@ else:
|
|||
else:
|
||||
if options.slot != None:
|
||||
slot = bus.get_object("org.seul.Xboxdrv", '/org/seul/Xboxdrv/ControllerSlots/%d' % options.slot)
|
||||
|
||||
|
||||
if options.led != None:
|
||||
slot.SetLed(options.led)
|
||||
|
||||
|
|
Loading…
Reference in a new issue