Changeset 986 for cpp/frams/_demos/loader_test_geno.cpp
- Timestamp:
- 07/08/20 20:38:51 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/loader_test_geno.cpp
r973 r986 19 19 fprintf(stderr, "Arguments: filename [genotype name or index (1-based) [field name]]\n" 20 20 "If a genotype is indicated (by providing the optional genotype identifier), the program will output the raw genotype, suitable for Framsticks Theater's genotype viewer mode. If a genotype and a field name is given, the field value (instead of the raw genotype) is printed. If the second argument is not given, the genotype names from the file will be listed.\n" 21 "Example: loader_test walking.gen \"Basic Quadruped\" | theater -g -\n"21 "Example: loader_test_geno walking.gen \"Basic Quadruped\" | theater -g -\n" 22 22 ); 23 23 return 1; … … 69 69 // the loop repeats until loaded==NULL, which could be beacause of error 70 70 if (loader.getStatus() == GenotypeMiniLoader::OnError) 71 fprintf(stderr, "Error: %s ", loader.getError().c_str());71 fprintf(stderr, "Error: %s\n", loader.getError().c_str()); 72 72 // (otherwise it was the end of the file) 73 73 if (selected) 74 74 { 75 fprintf(stderr, " genotype %s not found in %s\n", selected, argv[1]);75 fprintf(stderr, "Genotype %s not found in %s\n", selected, argv[1]); 76 76 return 2; 77 77 } 78 78 else 79 79 { 80 fprintf(stderr, "\n total: %d items, %d characters\n", count, totalsize);80 fprintf(stderr, "\nTotal: %d items, %d characters\n", count, totalsize); 81 81 return 0; 82 82 }
Note: See TracChangeset
for help on using the changeset viewer.