src/FDM/YASim/yasim-test.cpp: Minor improvements to help text.
This commit is contained in:
parent
04ee8d95f5
commit
417332f265
1 changed files with 4 additions and 2 deletions
|
@ -409,7 +409,7 @@ int usage()
|
||||||
fprintf(stderr, " -a set altitude in meters!\n");
|
fprintf(stderr, " -a set altitude in meters!\n");
|
||||||
fprintf(stderr, " -s set speed in knots\n");
|
fprintf(stderr, " -s set speed in knots\n");
|
||||||
fprintf(stderr, " -m print mass distribution table: id, x, y, z, mass \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 <aircraft.xml> [--detailed-graph] [--detailed-drag]\n");
|
fprintf(stderr, " yasim <aircraft.xml> [--detailed-graph] [--detailed-drag]\n");
|
||||||
fprintf(stderr, " yasim <aircraft.xml> [--detailed-min-speed -approach]\n");
|
fprintf(stderr, " yasim <aircraft.xml> [--detailed-min-speed -approach]\n");
|
||||||
fprintf(stderr, " yasim <aircraft.xml> [--detailed-min-speed -cruise]\n");
|
fprintf(stderr, " yasim <aircraft.xml> [--detailed-min-speed -cruise]\n");
|
||||||
|
@ -423,7 +423,9 @@ int main(int argc, char** argv)
|
||||||
FGFDM* fdm = new FGFDM();
|
FGFDM* fdm = new FGFDM();
|
||||||
Airplane* a = fdm->getAirplane();
|
Airplane* a = fdm->getAirplane();
|
||||||
|
|
||||||
if(argc < 2) return usage();
|
if (argc < 2 || !strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) {
|
||||||
|
return usage();
|
||||||
|
}
|
||||||
// Read
|
// Read
|
||||||
try {
|
try {
|
||||||
string file = argv[1];
|
string file = argv[1];
|
||||||
|
|
Loading…
Reference in a new issue