X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ffuse_nfs.c;h=28449eec4c88c52d7520e5cf4b4b4668ea7d23ac;hb=7e967f4de21a863bc51d9107c05b6b523fcce1db;hp=261a6aabd28c5b540ab78dfa4b2bc7fa69fa1f41;hpb=b4598f416f1d001d66badd0dc176cfef35b8fedf;p=deb_libnfs.git diff --git a/examples/fuse_nfs.c b/examples/fuse_nfs.c index 261a6aa..28449ee 100644 --- a/examples/fuse_nfs.c +++ b/examples/fuse_nfs.c @@ -191,7 +191,7 @@ static struct fuse_operations nfs_oper = { void print_usage(char *name) { - printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url] mountpoint\n", + printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url] [-m|--mountpoint=mountpoint]\n", name); exit(0); } @@ -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; }