Skip to content

Commit

Permalink
do not require height/height_column if elevation specified (#2911)
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Apr 7, 2023
1 parent ad85036 commit b3a3328
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions vector/v.extrude/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,11 @@ int main(int argc, char *argv[])

G_gisinit(argv[0]);

G_option_required(opt.height, opt.hcolumn, opt.elevation, NULL);

if (G_parser(argc, argv))
exit(EXIT_FAILURE);

if (!opt.height->answer && !opt.hcolumn->answer) {
G_fatal_error(_("One of '%s' or '%s' parameters must be set"),
opt.height->key, opt.hcolumn->key);
}

sscanf(opt.zshift->answer, "%lf", &voffset);
G_debug(1, "voffset = %f", voffset);

Expand Down

0 comments on commit b3a3328

Please sign in to comment.