1
0
Fork 0
mirror of https://gitlab.com/Syping/gta5view-cmd synced 2024-11-23 06:00:22 +01:00

fix -help & --help issue

This commit is contained in:
Syping 2018-02-01 18:16:04 +01:00
parent b9080c114c
commit fef8e025ea

View file

@ -348,7 +348,7 @@ int main(int argc, char *argv[])
{
cout << "gta5view Command Line" << endl << endl;
cout << "Usage: " << args.at(0).toStdString().c_str() << " source target -format -mode -flag=value" << endl;
if (args.length() >= 2 && args.at(1) == "--help" && args.at(1) == "-help")
if (args.length() >= 2 && (args.at(1) == "--help" || args.at(1) == "-help"))
{
cout << "Convert-only: <autodef> (auto file name at convert)" << endl;
cout << "Convert-only: <autoext> (auto file extension at convert)" << endl;