mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2025-01-30 22:50:16 -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 linux_input import timeval, input_event
|
||||
|
||||
import imp
|
||||
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except ImportError:
|
||||
import pickle
|
||||
|
||||
|
||||
import imp
|
||||
import optparse
|
||||
|
||||
parser = optparse.OptionParser(description='Create input devices. '
|
||||
'TODO')
|
||||
_usage = 'python create.py /path/to/config1 ... /path/to/configN'
|
||||
parser = optparse.OptionParser(description='Create input devices.',
|
||||
usage=_usage,
|
||||
version='0.01'
|
||||
)
|
||||
parser.add_option('-C', '--compat', action='store_true',
|
||||
help='Enable compatibility mode; for Python < 2.7')
|
||||
|
||||
|
@ -10,8 +10,10 @@ except ImportError:
|
||||
|
||||
import optparse
|
||||
|
||||
parser = optparse.OptionParser(description='Read input devices. '
|
||||
'TODO')
|
||||
_usage = 'python read.py /dev/input/event<0> ... /dev/input/event<N>'
|
||||
parser = optparse.OptionParser(description='Read input devices.',
|
||||
usage = _usage,
|
||||
version='0.01')
|
||||
parser.add_option('-D', '--dump', action='store_false',
|
||||
default=True, help='Dump will marshall all the events to stdout')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user