--help
This commit is contained in:
+9
-2
@@ -4,6 +4,7 @@
|
||||
#include <ncursesw/ncurses.h>
|
||||
/* #include <string_view> */
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
/* using std::string_view; */
|
||||
using std::cout;
|
||||
@@ -13,12 +14,18 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
if(argc < 2)
|
||||
{
|
||||
cout << "Usage: tft FILES...\n";
|
||||
cout << "Usage: tft FILE...\n";
|
||||
return 0;
|
||||
}
|
||||
if(!strcmp(argv[1], "--help"))
|
||||
{
|
||||
cout << "Usage: tft FILE...\n"
|
||||
<< "Display the family tree in each FILE\n";
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
for(int i = 1; i < argc; ++i)
|
||||
{
|
||||
parseTftFile(argv[i]).display();
|
||||
|
||||
Reference in New Issue
Block a user