|
@@ -178,22 +178,22 @@ int main(int argc, char **argv)
|
|
|
|
|
|
par_profiledata = G_define_standard_option(G_OPT_F_OUTPUT);
|
|
par_profiledata = G_define_standard_option(G_OPT_F_OUTPUT);
|
|
par_profiledata->key = "profiledata";
|
|
par_profiledata->key = "profiledata";
|
|
- par_profiledata->answer = "-";
|
|
|
|
par_profiledata->required = NO;
|
|
par_profiledata->required = NO;
|
|
par_profiledata->description =
|
|
par_profiledata->description =
|
|
_("Profile output file name (\"-\" for stdout)");
|
|
_("Profile output file name (\"-\" for stdout)");
|
|
par_profiledata->guisection = _("Profile");
|
|
par_profiledata->guisection = _("Profile");
|
|
G_option_requires(par_profiledata, par_coords, NULL);
|
|
G_option_requires(par_profiledata, par_coords, NULL);
|
|
|
|
+ G_option_requires(par_coords, par_profiledata, NULL);
|
|
|
|
|
|
par_profileformat = G_define_option();
|
|
par_profileformat = G_define_option();
|
|
par_profileformat->key = "profileformat";
|
|
par_profileformat->key = "profileformat";
|
|
par_profileformat->type = TYPE_STRING;
|
|
par_profileformat->type = TYPE_STRING;
|
|
par_profileformat->options = "json,yaml,xml";
|
|
par_profileformat->options = "json,yaml,xml";
|
|
- par_profileformat->answer = "json";
|
|
|
|
par_profileformat->required = NO;
|
|
par_profileformat->required = NO;
|
|
par_profileformat->description = _("Profile output format");
|
|
par_profileformat->description = _("Profile output format");
|
|
par_profileformat->guisection = _("Profile");
|
|
par_profileformat->guisection = _("Profile");
|
|
G_option_requires(par_profileformat, par_coords, NULL);
|
|
G_option_requires(par_profileformat, par_coords, NULL);
|
|
|
|
+ G_option_requires(par_coords, par_profileformat, NULL);
|
|
|
|
|
|
if (G_parser(argc, argv))
|
|
if (G_parser(argc, argv))
|
|
exit(EXIT_FAILURE);
|
|
exit(EXIT_FAILURE);
|