aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authortimoreo <contact@timoreo.fr>2022-11-16 14:26:52 +0100
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 15:05:17 -0700
commit54fb799d95faa3d646cfc835937e5fbdb10afa4d (patch)
tree30befcc3832038cdbdd43baebf691512bb66414b /launcher
parent565202c99004a13f4d6b9bad6ec1e0634fb280fb (diff)
downloadPrismLauncher-54fb799d95faa3d646cfc835937e5fbdb10afa4d.tar.gz
PrismLauncher-54fb799d95faa3d646cfc835937e5fbdb10afa4d.tar.bz2
PrismLauncher-54fb799d95faa3d646cfc835937e5fbdb10afa4d.zip
Fix command line args
Signed-off-by: timoreo <contact@timoreo.fr>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/Application.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 0b1ab16c..6994d1ba 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -219,6 +219,9 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
{{"I", "import"}, "Import instance from specified zip (local path or URL)", "file"},
{"show", "Opens the window for the specified instance (by instance ID)", "show"}
});
+ // Has to be positional for some OS to handle that properly
+ parser.addPositionalArgument("urls","import the resource at the given url(s) (URL to modpack Zip / local Zip / curseforge:// modpack link)","[urls...]");
+
parser.addHelpOption();
parser.addVersionOption();