examples: If user does 'mount-local --help' don't create a disk image called '--help'.

This commit is contained in:
Richard W.M. Jones
2013-05-20 21:46:49 +01:00
parent 49979931f6
commit c74f7f15cb

View File

@@ -53,6 +53,11 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
if (argv[1][0] == '-') {
usage ();
exit (EXIT_FAILURE);
}
printf ("\n"
"This is the 'mount-local' demonstration program. Follow the\n"
"instructions on screen.\n"