From fe5f8131416f1f45d2da435078747cb3ea7066bf Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 10 Jul 2024 14:59:57 +1000 Subject: [PATCH] Avoid missing argument description warnings when loading GRASS layers --- src/providers/grass/qgis.g.info.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/providers/grass/qgis.g.info.c b/src/providers/grass/qgis.g.info.c index 7e6426b5bf9f..462bed9067ad 100644 --- a/src/providers/grass/qgis.g.info.c +++ b/src/providers/grass/qgis.g.info.c @@ -57,39 +57,48 @@ int main( int argc, char **argv ) rast_opt = G_define_standard_option( G_OPT_R_INPUT ); rast_opt->key = "rast"; + rast_opt->description = "rast"; rast_opt->required = NO; vect_opt = G_define_standard_option( G_OPT_V_INPUT ); vect_opt->key = "vect"; + vect_opt->description = "vect"; vect_opt->required = NO; coor_opt = G_define_option(); coor_opt->key = "coor"; + coor_opt->description = "coor"; coor_opt->type = TYPE_DOUBLE; coor_opt->multiple = YES; north_opt = G_define_option(); north_opt->key = "north"; + north_opt->description = "north"; north_opt->type = TYPE_STRING; south_opt = G_define_option(); south_opt->key = "south"; + south_opt->description = "south"; south_opt->type = TYPE_STRING; east_opt = G_define_option(); east_opt->key = "east"; + east_opt->description = "east"; east_opt->type = TYPE_STRING; west_opt = G_define_option(); west_opt->key = "west"; + west_opt->description = "west"; west_opt->type = TYPE_STRING; rows_opt = G_define_option(); rows_opt->key = "rows"; + rows_opt->description = "rows"; rows_opt->type = TYPE_INTEGER; cols_opt = G_define_option(); cols_opt->key = "cols"; + cols_opt->description = "cols"; cols_opt->type = TYPE_INTEGER; if ( G_parser( argc, argv ) )