aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/alf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/alf.c b/src/alf.c
index 8fedb20..be47344 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -311,6 +311,9 @@ int main(int argc, char **argv) {
usage();
}
+ /* don't let getopt() print error message for us. */
+ opterr = 0;
+
while((opt = getopt(argc, argv, "ao")) != -1) {
switch(opt) {
case 'a': opt_append = 1; opt_overwrite = 1; break;