aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-09-06 18:47:26 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-09-06 18:47:26 +0200
commita674be611c1541a3028d823f92b97882b1ffdf82 (patch)
tree13ec34ae78c8df0a4924a3601861ff4ac65b76ed
parent35181baf32c5690fc913bb057db62874897cbf0b (diff)
downloadmblaze-a674be611c1541a3028d823f92b97882b1ffdf82.tar.gz
mflow: fix argument parsing
-rw-r--r--mflow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mflow.c b/mflow.c
index a6dfe6d..6a9d55b 100644
--- a/mflow.c
+++ b/mflow.c
@@ -136,11 +136,11 @@ main(int argc, char *argv[])
}
int c;
- while ((c = getopt(argc, argv, "f:w:q")) != -1)
+ while ((c = getopt(argc, argv, "fqw:")) != -1)
switch (c) {
case 'f': force = 1; break;
- case 'w': maxcolumn = atoi(optarg); break;
case 'q': outer_quotes++; break;
+ case 'w': maxcolumn = atoi(optarg); break;
default:
fprintf(stderr, "Usage: mflow [-f] [-q] [-w MAXCOLUMNS]\n");
exit(2);