1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00

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

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 );
}