File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,7 @@ int dunst_main(int argc, char *argv[])
165165
166166 dunst_log_init (false);
167167
168- if (cmdline_get_bool ("-v/-version" , false, "Print version" )
169- || cmdline_get_bool ("--version" , false, "Print version" )) {
168+ if (cmdline_get_bool ("-v/-version/--version" , false, "Print version" )) {
170169 print_version ();
171170 }
172171
@@ -180,13 +179,11 @@ int dunst_main(int argc, char *argv[])
180179 "Path to configuration file" );
181180 load_settings (cmdline_config_path );
182181
183- if (cmdline_get_bool ("-h/-help" , false, "Print help" )
184- || cmdline_get_bool ("--help" , false, "Print help" )) {
182+ if (cmdline_get_bool ("-h/-help/--help" , false, "Print help" )) {
185183 usage (EXIT_SUCCESS );
186184 }
187185
188- if (cmdline_get_bool ("-print" , false, "Print notifications to stdout" )
189- || cmdline_get_bool ("--print" , false, "Print notifications to stdout" )) {
186+ if (cmdline_get_bool ("-print/--print" , false, "Print notifications to stdout" )) {
190187 settings .print_notifications = true;
191188 }
192189
You can’t perform that action at this time.
0 commit comments