From: Marlies Heijkoop Date: Sat, 16 Aug 2014 14:38:25 +0000 (+0200) Subject: Print usage when missing mandatory arguments X-Git-Tag: upstream/1.9.6^2~6^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7e967f4de21a863bc51d9107c05b6b523fcce1db;p=deb_libnfs.git Print usage when missing mandatory arguments --- diff --git a/examples/fuse_nfs.c b/examples/fuse_nfs.c index 23a4ce8..28449ee 100644 --- a/examples/fuse_nfs.c +++ b/examples/fuse_nfs.c @@ -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; }