Skip to content

Commit

Permalink
better help printing for showmats
Browse files Browse the repository at this point in the history
  • Loading branch information
f4alt committed Aug 15, 2023
1 parent 933ec93 commit 04a632c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libged/showmats/showmats.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ ged_showmats_core(struct ged *gedp, int argc, const char *argv[])
bu_vls_trunc(gedp->ged_result_str, 0);

/* must be wanting help */
if (argc == 1) {
if (argc == 1 || argc == 2 && argv[1][0] == '-') {
bu_vls_printf(gedp->ged_result_str, "Usage: %s %s", argv[0], usage);
return GED_HELP;
}
Expand Down

0 comments on commit 04a632c

Please sign in to comment.