mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05: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 main ( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
int quiet = FALSE;
|
|
||||||
int dmenu_mode = FALSE;
|
|
||||||
cmd_set_arguments ( argc, argv );
|
cmd_set_arguments ( argc, argv );
|
||||||
// Quiet flag
|
// Quiet flag
|
||||||
if ( find_arg ( "-quiet" ) >= 0 ) {
|
int quiet = ( find_arg ( "-quiet" ) >= 0 );
|
||||||
quiet = TRUE;
|
|
||||||
}
|
|
||||||
// catch help request
|
// catch help request
|
||||||
if ( find_arg ( "-h" ) >= 0 || find_arg ( "-help" ) >= 0 || find_arg ( "--help" ) >= 0 ) {
|
if ( find_arg ( "-h" ) >= 0 || find_arg ( "-help" ) >= 0 || find_arg ( "--help" ) >= 0 ) {
|
||||||
help ();
|
help ();
|
||||||
|
@ -1865,6 +1861,7 @@ int main ( int argc, char *argv[] )
|
||||||
// Detect if we are in dmenu mode.
|
// Detect if we are in dmenu mode.
|
||||||
// This has two possible causes.
|
// This has two possible causes.
|
||||||
// 1 the user specifies it on the command-line.
|
// 1 the user specifies it on the command-line.
|
||||||
|
int dmenu_mode = FALSE;
|
||||||
if ( find_arg ( "-dmenu" ) >= 0 ) {
|
if ( find_arg ( "-dmenu" ) >= 0 ) {
|
||||||
dmenu_mode = TRUE;
|
dmenu_mode = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue