X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Foptions.h;fp=fish%2Foptions.h;h=9cb7f4bbb4f10b7964a866b605a971fcf530745a;hp=e36c57a09775765a766b8dd4a82d2d9725a3ffda;hb=2c4a7ef92a4583a1217213573ad406eb5d745990;hpb=26118d498eefe10c8fa604f949680d2417c8b25c diff --git a/fish/options.h b/fish/options.h index e36c57a..9cb7f4b 100644 --- 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)