aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cg-gamma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cg-gamma.c b/src/cg-gamma.c
index 566fc89..2df133a 100644
--- a/src/cg-gamma.c
+++ b/src/cg-gamma.c
@@ -388,13 +388,13 @@ int handle_args(int argc, char* argv[], char* method, char* site,
char** crtcs, char* prio, char* rule)
{
int free_fflag = 0, saved_errno;
- int q = xflag + dflag + (fflag && argc);
+ int q = xflag + dflag;
q += (method != NULL) && !strcmp(method, "?");
q += (prio != NULL) && !strcmp(prio, "?");
q += (rule != NULL) && (!strcmp(rule, "?") || !strcmp(rule, "??"));
for (; *crtcs; crtcs++)
q += !strcmp(*crtcs, "?");
- if ((q > 1) || (xflag && ((fflag != NULL) || (argc > 0) || (prio != NULL))))
+ if ((q > 1) || (fflag && argc) || (xflag && ((fflag != NULL) || (argc > 0) || (prio != NULL))))
usage();
if (argc == 1)
{