aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-06 02:00:30 +0200
committerMattias Andrée <maandree@kth.se>2016-08-06 02:00:30 +0200
commitbd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1 (patch)
tree37de22be4c4b5b3757915c45cc373468f93abc43 /src
parentm (diff)
downloadcg-tools-bd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1.tar.gz
cg-tools-bd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1.tar.bz2
cg-tools-bd7d7605d8cbf46ef6bd8e8d2c40300aab6c01a1.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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)
{