mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
examples: If user does 'mount-local --help' don't create a disk image called '--help'.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user