git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fish: Add --rw option (does nothing yet).
[libguestfs.git]
/
fish
/
options.h
diff --git
a/fish/options.h
b/fish/options.h
index
e36c57a
..
9cb7f4b
100644
(file)
--- a/
fish/options.h
+++ b/
fish/options.h
@@
-185,6
+185,13
@@
extern int add_libvirt_drives (const char *guest);
exit (EXIT_SUCCESS); \
}
+#define OPTION_w \
+ if (read_only) { \
+ fprintf (stderr, _("%s: cannot mix --ro and --rw options\n"), \
+ program_name); \
+ exit (EXIT_FAILURE); \
+ }
+
#define OPTION_x \
guestfs_set_trace (g, 1)