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:
Jason Pleau 2015-04-05 17:00:22 -04:00
parent 91fcc76cb2
commit 6f2c284f37
1 changed files with 1 additions and 1 deletions

View File

@ -1688,7 +1688,7 @@ int main ( int argc, char *argv[] )
quiet = TRUE;
}
// 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 ();
exit ( EXIT_SUCCESS );
}