action="store_true",
dest="auto_connect", default=False),
make_option("-P", "--PSM", action="store",
- type="int", dest="psm"),
+ type="int", dest="psm",
+ default=None),
make_option("-C", "--channel", action="store",
- type="int", dest="channel"),
+ type="int", dest="channel",
+ default=None),
make_option("-r", "--record", action="store",
type="string", dest="record",
default=None),
if (options.role):
opts["Role"] = options.role
- if (options.psm):
+ if (options.psm is not None):
opts["PSM"] = dbus.UInt16(options.psm)
- if (options.channel):
+ if (options.channel is not None):
opts["Channel"] = dbus.UInt16(options.channel)
if (options.record):