Index: appfsd.c ================================================================== --- appfsd.c +++ appfsd.c @@ -1984,12 +1984,15 @@ if (getuid() == 0) { fuse_opt_parse(args, NULL, NULL, NULL); fuse_opt_add_arg(args, "-oallow_other"); } - while ((ch = getopt(argc, argv, "dfsho:")) != -1) { + while ((ch = getopt(argc, argv, "dfshvo:")) != -1) { switch (ch) { + case 'v': + /* Ignored */ + break; case 'o': optstr_next = optstr = optstr_s = strdup(optarg); while (1) { optstr = optstr_next; @@ -2045,11 +2048,11 @@ fuse_opt_add_arg(args, fake_arg); break; case 'h': appfs_print_help(stdout); - return(0); + return(-1); case ':': case '?': default: appfs_print_help(stderr); @@ -2211,10 +2214,14 @@ /** ** Perform the argument parsing **/ aop_ret = appfs_opt_parse(argc, argv, &args); if (aop_ret != 0) { + if (aop_ret < 0) { + return(0); + } + return(aop_ret); } /* * Create a Tcl interpreter just to verify that things are in working