repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
2e630bb
)
Merge pull request #99 from mheijkoop/fuse-nfs-usage
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sat, 16 Aug 2014 21:37:53 +0000
(14:37 -0700)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sat, 16 Aug 2014 21:37:53 +0000
(14:37 -0700)
Fix help message for fuse_nfs example
examples/fuse_nfs.c
patch
|
blob
|
blame
|
history
diff --git
a/examples/fuse_nfs.c
b/examples/fuse_nfs.c
index 261a6aabd28c5b540ab78dfa4b2bc7fa69fa1f41..28449eec4c88c52d7520e5cf4b4b4668ea7d23ac 100644
(file)
--- 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;
}