Merge pull request #99 from mheijkoop/fuse-nfs-usage

Fix help message for fuse_nfs example
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2014-08-16 14:37:53 -07:00
commit 8768f8cc2b
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}