mirror of https://github.com/davatorium/rofi.git
alias --help to -h/-help
Right now running rofi --help puts it in daemon mode, which can be confusing for the user. Options in rofi use one dash instead of two, but I believe an exception should be made for --help.
This commit is contained in:
parent
91fcc76cb2
commit
6f2c284f37
|
@ -1688,7 +1688,7 @@ int main ( int argc, char *argv[] )
|
||||||
quiet = TRUE;
|
quiet = TRUE;
|
||||||
}
|
}
|
||||||
// catch help request
|
// catch help request
|
||||||
if ( find_arg ( "-h" ) >= 0 || find_arg ( "-help" ) >= 0 ) {
|
if ( find_arg ( "-h" ) >= 0 || find_arg ( "-help" ) >= 0 || find_arg( "--help" ) >= 0 ) {
|
||||||
help ();
|
help ();
|
||||||
exit ( EXIT_SUCCESS );
|
exit ( EXIT_SUCCESS );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue