summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/main.c8
-rw-r--r--swaygrab/main.c6
-rw-r--r--swaymsg/main.c5
3 files changed, 8 insertions, 11 deletions
diff --git a/sway/main.c b/sway/main.c
index 473a0990..1261a7ce 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -57,10 +57,10 @@ int main(int argc, char **argv) {
57 static struct option long_options[] = { 57 static struct option long_options[] = {
58 {"help", no_argument, NULL, 'h'}, 58 {"help", no_argument, NULL, 'h'},
59 {"config", required_argument, NULL, 'c'}, 59 {"config", required_argument, NULL, 'c'},
60 {"validate", no_argument, &validate, 1}, 60 {"validate", no_argument, NULL, 'C'},
61 {"debug", no_argument, &debug, 1}, 61 {"debug", no_argument, NULL, 'd'},
62 {"version", no_argument, NULL, 'v'}, 62 {"version", no_argument, NULL, 'v'},
63 {"verbose", no_argument, &verbose, 1}, 63 {"verbose", no_argument, NULL, 'V'},
64 {"get-socketpath", no_argument, NULL, 'p'}, 64 {"get-socketpath", no_argument, NULL, 'p'},
65 {0, 0, 0, 0} 65 {0, 0, 0, 0}
66 }; 66 };
@@ -87,8 +87,6 @@ int main(int argc, char **argv) {
87 break; 87 break;
88 } 88 }
89 switch (c) { 89 switch (c) {
90 case 0: // Flag
91 break;
92 case 'h': // help 90 case 'h': // help
93 fprintf(stdout, "%s", usage); 91 fprintf(stdout, "%s", usage);
94 exit(EXIT_SUCCESS); 92 exit(EXIT_SUCCESS);
diff --git a/swaygrab/main.c b/swaygrab/main.c
index ae17155f..681a6da4 100644
--- a/swaygrab/main.c
+++ b/swaygrab/main.c
@@ -128,10 +128,10 @@ int main(int argc, char **argv) {
128 128
129 static struct option long_options[] = { 129 static struct option long_options[] = {
130 {"help", no_argument, NULL, 'h'}, 130 {"help", no_argument, NULL, 'h'},
131 {"capture", no_argument, &capture, 'c'}, 131 {"capture", no_argument, NULL, 'c'},
132 {"version", no_argument, NULL, 'v'}, 132 {"version", no_argument, NULL, 'v'},
133 {"socket", required_argument, NULL, 's'}, 133 {"socket", required_argument, NULL, 's'},
134 {"raw", no_argument, &raw, 'r'}, 134 {"raw", no_argument, NULL, 'r'},
135 {"rate", required_argument, NULL, 'R'}, 135 {"rate", required_argument, NULL, 'R'},
136 {0, 0, 0, 0} 136 {0, 0, 0, 0}
137 }; 137 };
@@ -154,8 +154,6 @@ int main(int argc, char **argv) {
154 break; 154 break;
155 } 155 }
156 switch (c) { 156 switch (c) {
157 case 0: // Flag
158 break;
159 case 's': // Socket 157 case 's': // Socket
160 socket_path = strdup(optarg); 158 socket_path = strdup(optarg);
161 break; 159 break;
diff --git a/swaymsg/main.c b/swaymsg/main.c
index 8f91dc55..f8c9e14c 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -24,7 +24,7 @@ int main(int argc, char **argv) {
24 24
25 static struct option long_options[] = { 25 static struct option long_options[] = {
26 {"help", no_argument, NULL, 'h'}, 26 {"help", no_argument, NULL, 'h'},
27 {"quiet", no_argument, &quiet, 'q'}, 27 {"quiet", no_argument, NULL, 'q'},
28 {"version", no_argument, NULL, 'v'}, 28 {"version", no_argument, NULL, 'v'},
29 {"socket", required_argument, NULL, 's'}, 29 {"socket", required_argument, NULL, 's'},
30 {"type", required_argument, NULL, 't'}, 30 {"type", required_argument, NULL, 't'},
@@ -48,7 +48,8 @@ int main(int argc, char **argv) {
48 break; 48 break;
49 } 49 }
50 switch (c) { 50 switch (c) {
51 case 0: // Flag 51 case 'q': // Quiet
52 quiet = 1;
52 break; 53 break;
53 case 's': // Socket 54 case 's': // Socket
54 socket_path = strdup(optarg); 55 socket_path = strdup(optarg);