webkitpdf.vala.c
BrowserWindow.vala.c
throw new OptionError.BAD_VALUE("missing pdf or png filename");
}
- if (webkitpdf.opt_target_pdf != null) {
- print("got pdf\n");
- }
- if (webkitpdf.opt_target_png != null) {
- print("got png\n");
- }
- if ((webkitpdf.opt_target_pdf == null) && (webkitpdf.opt_target_png != null)) {
- throw new OptionError.BAD_VALUE("missing pdf file path");
- }
- print("got here?\n");
+
} catch (OptionError e) {
stdout.printf ("error: %s\n", e.message);
stdout.printf ("Run '%s --help' to see a full list of available command line options.\n %s",