This commit is contained in:
vrd
2023-05-13 21:01:44 +03:00
parent a0703143f0
commit 291168d507
3 changed files with 17 additions and 6 deletions
+9 -2
View File
@@ -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();