pk-hack / CoilSnake

https://pk-hack.github.io/CoilSnake/
GNU General Public License v3.0
158 stars 37 forks source link

add support for CLI in executable binary #293

Open Supremekirb opened 2 months ago

Supremekirb commented 2 months ago

CoilSnake's command line interface is only usable via the source code. This branch adds the ability for the CLI to be accessed through an executable binary.

This changes CoilSnake.spec to no longer consider the program windowed, instead making it a console application with the extra option hide_console='hide-early' set. In script/gui.py, the entry file of the binary, a check is added which will switch to CLI mode (script/cli.py) if extra arguments are passed, and skip running the GUI entirely.