From 6f2c284f3752f6cb2eedea228a4fd4855087473b Mon Sep 17 00:00:00 2001 From: Jason Pleau Date: Sun, 5 Apr 2015 17:00:22 -0400 Subject: [PATCH] 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. --- source/rofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rofi.c b/source/rofi.c index 4c945042..bd30efcc 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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 ); }