Print usage when missing mandatory arguments
authorMarlies Heijkoop <mheijkoop@gmail.com>
Sat, 16 Aug 2014 14:38:25 +0000 (16:38 +0200)
committerMarlies Heijkoop <mheijkoop@gmail.com>
Sat, 16 Aug 2014 14:38:25 +0000 (16:38 +0200)
examples/fuse_nfs.c

index 23a4ce89d26158f4998c3af53632cc6ddd086029..28449eec4c88c52d7520e5cf4b4b4668ea7d23ac 100644 (file)
@@ -248,11 +248,13 @@ int main(int argc, char *argv[])
 
        if (url == NULL) {
                fprintf(stderr, "-n was not specified.\n");
+               print_usage(argv[0]);
                ret = 10;
                goto finished;
        }
        if (mnt == NULL) {
                fprintf(stderr, "-m was not specified.\n");
+               print_usage(argv[0]);
                ret = 10;
                goto finished;
        }