Don't handle --help and --version in fuse_session_new().
authorNikolaus Rath <Nikolaus@rath.org>
Mon, 3 Oct 2016 03:52:33 +0000 (20:52 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 3 Oct 2016 04:09:37 +0000 (21:09 -0700)
commit425db842ff1155fcd3b40439fcd88248d45a5db7
tree96615a1328c7a19b9c8c4c18d42fd6464cebe7f2
parenta10ee045e76cec75f9d8c08f78f0acc994302305
Don't handle --help and --version in fuse_session_new().

Help and version messages can be generated using the new
fuse_lowlevel_help(), fuse_lowlevel_version(), fuse_mount_help(), and
fuse_mount_version() functions.

The fuse_parse_cmdline() function has been made more powerful
to do this automatically, and is now explicitly intended only
for low-level API users.

This is a code simplication patch. We don't have to parse for --help and
--version in quite as many places, and we no longer have a low-level
initialization function be responsible for the (super-high level) task
of printing a program usage message.

In the high-level API, we can now handle the command line parsing
earlier and avoid running other initialization code if we're just going
to abort later on.
ChangeLog.rst
example/fuse_lo-plus.c
example/hello_ll.c
include/fuse_common.h
include/fuse_lowlevel.h
lib/cuse_lowlevel.c
lib/fuse.c
lib/fuse_lowlevel.c
lib/fuse_versionscript
lib/helper.c