Closed vi closed 2 years ago
I recommend you implement your own argument parsing. For example, see examples/hello.rs
. Alternately you can copy that method. I'm not planning to make it public though, because backwards compatibility with the command line arguments used by the userspace of libfuse is not a goal of this project
Typical FUSE program allows user to specify options like
-o allow_other
on command line.However,
fuser
'smount2
function expects high-level enum-based options interface. Some of the options are not just passed tofusermount
, but processed withinfuser
, so that just mapping everything toMountOption::CUSTOM
leaks to broken e.g.allow_other
behaviour.I see internal function that converts from a list of
OsStr
s (or something), for backward compatibility with deprecatedmount
, but that function ispub(crate)
. Should it be more public to allow exposing [some] FUSE options in CLI without repeating them explicitly in all user apps?