i3-msg: don’t stop processing options after -s
This commit is contained in:
parent
41b6631f68
commit
64b5985d5d
@ -127,7 +127,6 @@ int main(int argc, char *argv[]) {
|
|||||||
while ((o = getopt_long(argc, argv, options_string, long_options, &option_index)) != -1) {
|
while ((o = getopt_long(argc, argv, options_string, long_options, &option_index)) != -1) {
|
||||||
if (o == 's') {
|
if (o == 's') {
|
||||||
socket_path = strdup(optarg);
|
socket_path = strdup(optarg);
|
||||||
break;
|
|
||||||
} else if (o == 't') {
|
} else if (o == 't') {
|
||||||
if (strcasecmp(optarg, "command") == 0)
|
if (strcasecmp(optarg, "command") == 0)
|
||||||
message_type = I3_IPC_MESSAGE_TYPE_COMMAND;
|
message_type = I3_IPC_MESSAGE_TYPE_COMMAND;
|
||||||
|
Loading…
Reference in New Issue
Block a user