Skip to content

Commit

Permalink
fix view usage
Browse files Browse the repository at this point in the history
intentionally not call out qvrot in the usage line (since dir is a
better name). But, leave it as a subcommand for legacy expectations.
  • Loading branch information
f4alt committed Nov 21, 2024
1 parent 6f5c4bd commit 388629e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libged/view/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ ged_view_func_core(struct ged *gedp, int argc, const char *argv[])
return ged_view_core(gedp, argc, argv);


static const char *usage = "ae|aet|auto|center|eye|lookat|printquat|qvrot|save|size|ypr [args]";
static const char *usage = "ae|aet|auto|center|eye|lookat|print|quat|save|size|ypr [args]";

GED_CHECK_VIEW(gedp, BRLCAD_ERROR);
GED_CHECK_ARGC_GT_0(gedp, argc, BRLCAD_ERROR);
Expand Down Expand Up @@ -818,7 +818,7 @@ ged_view_func_core(struct ged *gedp, int argc, const char *argv[])
return ged_quat_core(gedp, argc-1, argv+1);
}

if (BU_STR_EQUAL(argv[1], "dir")) {
if (BU_STR_EQUAL(argv[1], "qvrot") || BU_STR_EQUAL(argv[1], "dir")) {
if (argc < 4)
return ged_viewdir_core(gedp, argc-1, argv+1);
return ged_qvrot_core(gedp, argc-1, argv+1);
Expand Down

0 comments on commit 388629e

Please sign in to comment.