Also, do not include "General options" in usage message.
static void fuse_lib_help(void)
{
printf(
+"High-level options\n"
" -o hard_remove immediate removal (don't hide files)\n"
" -o use_ino let filesystem set inode numbers\n"
" -o readdir_ino try to fill in d_ino in readdir\n"
" -o nopath don't supply path if not necessary\n"
" -o intr allow requests to be interrupted\n"
" -o intr_signal=NUM signal to send on interrupt (%i)\n"
-" -o modules=M1[:M2...] names of modules to push onto filesystem stack\n"
-"\n", FUSE_DEFAULT_INTR_SIGNAL);
+" -o modules=M1[:M2...] names of modules to push onto filesystem stack\n\n",
+ FUSE_DEFAULT_INTR_SIGNAL);
}
static void fuse_lib_help_modules(void)
static void fuse_ll_help(void)
{
printf(
+"Low-level options\n"
" -o max_write=N set maximum size of write requests\n"
" -o max_readahead=N set maximum readahead\n"
" -o max_background=N set number of maximum background requests\n"
" -o [no_]async_dio asynchronous direct I/O\n"
" -o [no_]writeback_cache asynchronous, buffered writes\n"
" -o time_gran=N time granularity in nsec\n"
-" -o clone_fd clone fuse device file descriptors\n"
-);
+" -o clone_fd clone fuse device file descriptors\n\n");
}
static int fuse_ll_opt_proc(void *data, const char *arg, int key,
static void usage(const char *progname)
{
printf("usage: %s mountpoint [options]\n\n", progname);
- printf("general options:\n"
- " -o opt,[opt...] mount options\n"
- " -h --help print help\n"
- " -V --version print version\n"
- "\n");
}
static void helper_help(void)
{
- printf("FUSE options:\n"
+ printf("General options:\n"
+ " -h --help print help\n"
+ " -V --version print version\n"
" -d -o debug enable debug output (implies -f)\n"
" -f foreground operation\n"
" -s disable multi-threaded operation\n"
void fuse_mount_help(void)
{
printf(
+"Mount options:\n"
" -o allow_other allow access to other users\n"
" -o allow_root allow access to root\n"
" -o auto_unmount auto unmount on process termination\n"
" -o fsname=NAME set filesystem name\n"
" -o subtype=NAME set filesystem type\n"
" -o large_read issue large read requests (2.4 only)\n"
-" -o max_read=N set maximum size of read requests\n"
-"\n");
+" -o max_read=N set maximum size of read requests\n\n");
}
static void exec_fusermount(const char *argv[])
void fuse_mount_help(void)
{
- printf(" -o allow_root allow access to root\n");
+ printf(
+"Mount options:\n"
+" -o allow_root allow access to root\n");
system(FUSERMOUNT_PROG " --help");
fputc('\n', stderr);
}