Merge pull request #186 from rhatdan/debug

Add support for debug to match help
This commit is contained in:
Giuseppe Scrivano 2020-02-19 15:46:07 +01:00 committed by GitHub
commit 8b91e3fed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
main.c
View File

@ -4952,7 +4952,8 @@ fuse_opt_proc (void *data, const char *arg, int key, struct fuse_args *outargs)
return 1;
if (strcmp (arg, "-V") == 0)
return 1;
if (strcmp (arg, "--debug") == 0)
if ((strcmp (arg, "--debug") == 0) || (strcmp (arg, "-d") == 0) ||
(strcmp (arg, "debug") == 0))
{
ovl_data->debug = 1;
return 1;