Rev 8385 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8385 | Rev 8393 | ||
---|---|---|---|
Line 1783... | Line 1783... | ||
1783 | if (argc >= 2) { |
1783 | if (argc >= 2) { |
1784 | if (strncmp("-h", argv[1], 2) == 0 || strncmp("--help", argv[1], 6) == 0) { |
1784 | if (strncmp("-h", argv[1], 2) == 0 || strncmp("--help", argv[1], 6) == 0) { |
1785 | printHelp(); |
1785 | printHelp(); |
1786 | return -1; |
1786 | return -1; |
1787 | } else if(strncmp("-v", argv[1], 2) == 0 || strncmp("--version", argv[1], 9) == 0) { |
1787 | } else if(strncmp("-v", argv[1], 2) == 0 || strncmp("--version", argv[1], 9) == 0) { |
1788 | char* _notify_version = "'Version:\n"; |
1788 | char _notify_version[256] = "'Version:\n"; |
1789 | strcat(_notify_version, TTE_VERSION); |
1789 | strcat(_notify_version, TTE_VERSION); |
1790 | strcat(_notify_version, "' -t -I"); |
1790 | strcat(_notify_version, "' -t -I"); |
1791 | /// printf("tte - version %s\n", TTE_VERSION); |
1791 | /// printf("tte - version %s\n", TTE_VERSION); |
1792 | notify(_notify_version); |
1792 | notify(_notify_version); |
1793 | return -1; |
1793 | return -1; |