mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2025-02-07 02:20:17 -05:00
Improve help a bit.
This commit is contained in:
parent
8ecdcd1bc1
commit
8c62a5910e
11
py/create.py
11
py/create.py
@ -4,18 +4,19 @@ from mapper import KeyMapper, parse_conf
|
|||||||
from example_conf import config
|
from example_conf import config
|
||||||
from linux_input import timeval, input_event
|
from linux_input import timeval, input_event
|
||||||
|
|
||||||
import imp
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
|
import imp
|
||||||
import optparse
|
import optparse
|
||||||
|
|
||||||
parser = optparse.OptionParser(description='Create input devices. '
|
_usage = 'python create.py /path/to/config1 ... /path/to/configN'
|
||||||
'TODO')
|
parser = optparse.OptionParser(description='Create input devices.',
|
||||||
|
usage=_usage,
|
||||||
|
version='0.01'
|
||||||
|
)
|
||||||
parser.add_option('-C', '--compat', action='store_true',
|
parser.add_option('-C', '--compat', action='store_true',
|
||||||
help='Enable compatibility mode; for Python < 2.7')
|
help='Enable compatibility mode; for Python < 2.7')
|
||||||
|
|
||||||
|
@ -10,8 +10,10 @@ except ImportError:
|
|||||||
|
|
||||||
import optparse
|
import optparse
|
||||||
|
|
||||||
parser = optparse.OptionParser(description='Read input devices. '
|
_usage = 'python read.py /dev/input/event<0> ... /dev/input/event<N>'
|
||||||
'TODO')
|
parser = optparse.OptionParser(description='Read input devices.',
|
||||||
|
usage = _usage,
|
||||||
|
version='0.01')
|
||||||
parser.add_option('-D', '--dump', action='store_false',
|
parser.add_option('-D', '--dump', action='store_false',
|
||||||
default=True, help='Dump will marshall all the events to stdout')
|
default=True, help='Dump will marshall all the events to stdout')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user