diff --git a/configure.ac b/configure.ac index 830daa0..d92ed0a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT(s3fs, 1.12) +AC_INIT(s3fs, 1.13) AC_CANONICAL_SYSTEM diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 265a2ff..433ffc7 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -1880,6 +1880,7 @@ static void show_help (void) { " --version Output version info.\n" " -d --debug Turn on DEBUG messages to syslog. Specifying -d\n" " twice turns on FUSE debug messages to STDOUT.\n" + " -f FUSE foreground option - do not run as daemon.\n" "\n" "\n" "Report bugs to \n" @@ -2072,7 +2073,7 @@ int main(int argc, char *argv[]) { program_name.replace(0, found+1, ""); } - while ((ch = getopt_long(argc, argv, "dho:", long_opts, &option_index)) != -1) { + while ((ch = getopt_long(argc, argv, "dho:f", long_opts, &option_index)) != -1) { switch (ch) { case 0: if (strcmp(long_opts[option_index].name, "version") == 0) { @@ -2090,6 +2091,9 @@ int main(int argc, char *argv[]) { case 'd': break; + case 'f': + break; + default: exit(1); }