Fix command line args
Signed-off-by: timoreo <contact@timoreo.fr>
This commit is contained in:
parent
565202c990
commit
54fb799d95
@ -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();
|
||||
|
||||
|
@ -10,4 +10,4 @@ Icon=org.prismlauncher.PrismLauncher
|
||||
Categories=Game;ActionGame;AdventureGame;Simulation;
|
||||
Keywords=game;minecraft;launcher;mc;multimc;polymc;
|
||||
StartupWMClass=PrismLauncher
|
||||
MimeType=application/zip;application/x-modrinth-modpack+zip
|
||||
MimeType=application/zip;application/x-modrinth-modpack+zip;x-scheme-handler/curseforge;
|
||||
|
Loading…
Reference in New Issue
Block a user