X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Foptions.h;h=9cb7f4bbb4f10b7964a866b605a971fcf530745a;hp=e36c57a09775765a766b8dd4a82d2d9725a3ffda;hb=b52183b5491748d9e979d30e55db6d648b102416;hpb=a232e62dcf508517a32b9a8d7e4529e827be721b 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)