]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
parse args start index=1, not 0 (skip script/exec name)
authorgg <chown_tee@proton.me>
Tue, 13 Jan 2026 03:08:26 +0000 (22:08 -0500)
committergg <chown_tee@proton.me>
Tue, 13 Jan 2026 03:09:27 +0000 (22:09 -0500)
src/main.cpp

index eccb4b4e28fabe6d79963d8132e7185c19db2885..20af54e6a0ca7dd291d1e38a1857228961e268b7 100644 (file)
@@ -83,7 +83,7 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
     QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
 #endif
 
-    for (int i = 0; i < argc; i++) {
+    for (int i = 1; i < argc; i++) {
         if (QString(argv[i]) == "--version" || QString(argv[i]) == "-v") {
             qInfo() << QObject::tr("Feather Wallet") << FEATHER_VERSION;
             return 0;