mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
small cleanup
This commit is contained in:
parent
e10aa09f74
commit
355ad8fe70
1 changed files with 2 additions and 5 deletions
|
@ -1844,13 +1844,9 @@ static GThread *setup_signal_thread ( int *fd )
|
|||
|
||||
int main ( int argc, char *argv[] )
|
||||
{
|
||||
int quiet = FALSE;
|
||||
int dmenu_mode = FALSE;
|
||||
cmd_set_arguments ( argc, argv );
|
||||
// Quiet flag
|
||||
if ( find_arg ( "-quiet" ) >= 0 ) {
|
||||
quiet = TRUE;
|
||||
}
|
||||
int quiet = ( find_arg ( "-quiet" ) >= 0 );
|
||||
// catch help request
|
||||
if ( find_arg ( "-h" ) >= 0 || find_arg ( "-help" ) >= 0 || find_arg ( "--help" ) >= 0 ) {
|
||||
help ();
|
||||
|
@ -1865,6 +1861,7 @@ int main ( int argc, char *argv[] )
|
|||
// Detect if we are in dmenu mode.
|
||||
// This has two possible causes.
|
||||
// 1 the user specifies it on the command-line.
|
||||
int dmenu_mode = FALSE;
|
||||
if ( find_arg ( "-dmenu" ) >= 0 ) {
|
||||
dmenu_mode = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue