mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
expect exactly one xkb arg
This commit is contained in:
parent
f16aa3c0ad
commit
b8261ab24b
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_layout(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb layout for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_layout", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_layout", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_model(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb model for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_model", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_model", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_options(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb options for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_options", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_options", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_rules(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb rules for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_rules", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_rules", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_variant(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb variant for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_variant", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_variant", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
Loading…
Reference in a new issue