aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-01 11:24:46 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-01 11:24:46 -0700
commite20e5c9ae574bba8827310edf38ae9edca08c469 (patch)
treee248bdc392e09f5419dcced5c7dedde4972dff50 /lib/fuse.c
parent944d1e1521935e82a3e667a401c7184467793ebc (diff)
Improve documentation of argument parsing.
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index a879ffa..cd254f9 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -4684,6 +4684,9 @@ struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args,
init_list_head(&f->full_slabs);
init_list_head(&f->lru_table);
+ /* When --help or --version are specified, we print messages
+ to stderr but continue for now (and keep the arguments in
+ `args` for use below */
if (fuse_opt_parse(args, &f->conf, fuse_lib_opts,
fuse_lib_opt_proc) == -1)
goto out_free_fs;
@@ -4714,6 +4717,8 @@ struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args,
f->conf.readdir_ino = 1;
#endif
+ /* This function will return NULL if there is an --help
+ or --version argument in `args` */
f->se = fuse_lowlevel_new(args, &llop, sizeof(llop), f);
if (f->se == NULL) {
if (f->conf.help)