Improve help a bit.

This commit is contained in:
Merlijn Wajer 2013-05-14 21:30:03 +02:00
parent 8ecdcd1bc1
commit 8c62a5910e
2 changed files with 10 additions and 7 deletions

View File

@ -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')

View File

@ -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')