renamed command line arg to print key names

This commit is contained in:
sezanzeb 2020-12-05 23:49:02 +01:00
parent 3b6df2a7ac
commit b3687f6627
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ delay of 10ms that can be configured in `~/.config/key-mapper/config`.
##### Key Names
Run `key-mapper-service --names` for a list of supported keys for
Run `key-mapper-service --key-names` for a list of supported keys for
the middle column. Examples:
- Alphanumeric `a` to `z` and `0` to `9`

View File

@ -66,7 +66,7 @@ if __name__ == '__main__':
default=False
)
parser.add_argument(
'-n', '--names', action='store_true', dest='names',
'-n', '--key-names', action='store_true', dest='key_names',
help='Print all available names for the mapping',
default=False
)
@ -85,7 +85,7 @@ if __name__ == '__main__':
add_filehandler()
log_info()
if options.names:
if options.key_names:
# TODO test
print('\n'.join(system_mapping.list_names()))
sys.exit(0)

View File

@ -690,7 +690,7 @@
"r(3, k(a).w(500))", "h(a).k(b)"
"m(Control_L, k(a).k(x))"
Run `key-mapper-service --names` for more
Run `key-mapper-service --key-names` for more
Macros:
- r: repeats the execution of the second parameter