Is it possible to launch a game through the Itch app via a command-line argument?
First of all, I am aware that a topic with this question already exists, but it is at least one year old and as such I didn't wish to necrobump it.
Also, while the response to the older thread was that there was no need to use command-line arguments to launch games, as you could just directly load the game's executable outside of the itch app, I have discovered a use-case where a command-line argument would be necessary; HTML5 games.
When downloading a HTML5 game through the itch app, there is no executable file, only a html file. Loading the html file directly will load it in whatever web browser is your default; this works for some HTML5 games, but others will completely break and be non-functional...it seems to depend on how the game was made and with what engine.
However, loading said game through the itch app instead loads it in some sort of special HTML5 launcher that's built into the itch app, one that appears to be compatible with all HTML5 games.
As such, a command-line argument to launch specific games through the itch app is absolutely necessary if the games in question are HTML5 games, as trying to load the file directly without the itch app can be problematic. And as for why you'd want to launch a specific game through the itch app automatically, this would be helpful for Steam Deck users as well as those who use alternative launchers (like Playnite or Launchbox) to organise their games.