Fix command line args

Signed-off-by: timoreo <contact@timoreo.fr>
This commit is contained in:
timoreo 2022-11-16 14:26:52 +01:00 committed by Rachel Powers
parent 565202c990
commit 54fb799d95
2 changed files with 4 additions and 1 deletions

View File

@ -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"}, {{"I", "import"}, "Import instance from specified zip (local path or URL)", "file"},
{"show", "Opens the window for the specified instance (by instance ID)", "show"} {"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.addHelpOption();
parser.addVersionOption(); parser.addVersionOption();

View File

@ -10,4 +10,4 @@ Icon=org.prismlauncher.PrismLauncher
Categories=Game;ActionGame;AdventureGame;Simulation; Categories=Game;ActionGame;AdventureGame;Simulation;
Keywords=game;minecraft;launcher;mc;multimc;polymc; Keywords=game;minecraft;launcher;mc;multimc;polymc;
StartupWMClass=PrismLauncher StartupWMClass=PrismLauncher
MimeType=application/zip;application/x-modrinth-modpack+zip MimeType=application/zip;application/x-modrinth-modpack+zip;x-scheme-handler/curseforge;