repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a88df2
)
Print usage when missing mandatory arguments
author
Marlies Heijkoop
<mheijkoop@gmail.com>
Sat, 16 Aug 2014 14:38:25 +0000
(16:38 +0200)
committer
Marlies Heijkoop
<mheijkoop@gmail.com>
Sat, 16 Aug 2014 14:38:25 +0000
(16:38 +0200)
examples/fuse_nfs.c
patch
|
blob
|
blame
|
history
diff --git
a/examples/fuse_nfs.c
b/examples/fuse_nfs.c
index 23a4ce89d26158f4998c3af53632cc6ddd086029..28449eec4c88c52d7520e5cf4b4b4668ea7d23ac 100644
(file)
--- 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;
}