From 417332f265d31ab16cee76b3b87e8c95ac2f8780 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Wed, 16 Mar 2022 21:20:47 +0000 Subject: [PATCH] src/FDM/YASim/yasim-test.cpp: Minor improvements to help text. --- src/FDM/YASim/yasim-test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/FDM/YASim/yasim-test.cpp b/src/FDM/YASim/yasim-test.cpp index ebdc90b8a..268b6cfe1 100644 --- a/src/FDM/YASim/yasim-test.cpp +++ b/src/FDM/YASim/yasim-test.cpp @@ -409,7 +409,7 @@ int usage() fprintf(stderr, " -a set altitude in meters!\n"); fprintf(stderr, " -s set speed in knots\n"); fprintf(stderr, " -m print mass distribution table: id, x, y, z, mass \n"); - fprintf(stderr, " Options to generate LD curve and greater deteiled plotting\n"); + fprintf(stderr, " Options to generate LD curve and greater detailed plotting\n"); fprintf(stderr, " yasim [--detailed-graph] [--detailed-drag]\n"); fprintf(stderr, " yasim [--detailed-min-speed -approach]\n"); fprintf(stderr, " yasim [--detailed-min-speed -cruise]\n"); @@ -423,7 +423,9 @@ int main(int argc, char** argv) FGFDM* fdm = new FGFDM(); Airplane* a = fdm->getAirplane(); - if(argc < 2) return usage(); + if (argc < 2 || !strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { + return usage(); + } // Read try { string file = argv[1];