mirror of
https://gitlab.com/Syping/gta5view-cmd
synced 2024-11-23 22:20:23 +01:00
fix crash when no arguments are given
This commit is contained in:
parent
a68ab3223c
commit
dd6d9ebc73
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -276,7 +276,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
cout << "gta5view Command Line" << endl << endl;
|
cout << "gta5view Command Line" << endl << endl;
|
||||||
cout << "Usage: " << args.at(0).toStdString().c_str() << " source target -format -mode" << endl;
|
cout << "Usage: " << args.at(0).toStdString().c_str() << " source target -format -mode" << endl;
|
||||||
if (args.at(1) == "--help")
|
if (args.length() >= 1 && args.at(1) == "--help")
|
||||||
{
|
{
|
||||||
cout << "Convert-only: <autodef> (auto file name at convert)" << endl;
|
cout << "Convert-only: <autodef> (auto file name at convert)" << endl;
|
||||||
cout << "Convert-only: <autoext> (auto file extension at convert)" << endl;
|
cout << "Convert-only: <autoext> (auto file extension at convert)" << endl;
|
||||||
|
|
Loading…
Reference in a new issue