renamed command line arg to print key names

This commit is contained in:
sezanzeb 2020-12-05 23:49:02 +01:00 committed by sezanzeb
parent 2e0b8095a3
commit 7c88692c86
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 ##### 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: the middle column. Examples:
- Alphanumeric `a` to `z` and `0` to `9` - Alphanumeric `a` to `z` and `0` to `9`

View File

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

View File

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