httpdirfs icon indicating copy to clipboard operation
httpdirfs copied to clipboard

add helptext for option -f (foreground)

Open milahu opened this issue 4 months ago • 3 comments

currently the -f flag is undocumented

also the --debug flag is undocumented

milahu avatar Sep 10 '25 11:09 milahu

Hmm, this is no longer working https://github.com/fangfufu/httpdirfs/blob/master/src/main.c#L242

fangfufu avatar Sep 10 '25 21:09 fangfufu

just add the helptext to static void print_long_help(void)?

    -V  --version           Print version\n\
    -f                      Run in foreground\n\
        --debug             Print debug messages\n\

https://github.com/fangfufu/httpdirfs/blob/2fde39982ee4c41b6469b74237686e4b1837411d/src/main.c#L240-L246

add_arg(fuse_argv, fuse_argc, "-ho"); is a noop it just adds "-ho" to fuse_argv, but then what should happen?

milahu avatar Sep 11 '25 05:09 milahu

add_arg(fuse_argv, fuse_argc, "-ho"); is a noop it just adds "-ho" to fuse_argv, but then what should happen?

FUSE should have printed out its own help messages. It used to happen.

fangfufu avatar Sep 11 '25 10:09 fangfufu