Bisa / factorio-init

Factorio init script
MIT License
414 stars 82 forks source link

make subcommand 'mod' respect mod-managers flags (like '--downgrade') #173

Closed GsakuL closed 3 years ago

GsakuL commented 3 years ago

Factorio: 1.0 FNEI has to be installed with --downgrade since there is no explicit 1.0 version of the mod

$ ./factorio mod install FNEI
No matching version found for the mod "FNEI". No mod has been installed !

Finished !
$ ./factorio mod install FNEI --downgrade
usage: mods_manager.py [-h] [-p FACTORIO_PATH] [-u USERNAME] [-t TOKEN] [-d] [-i MOD_NAME_TO_INSTALL] [-U] [-e] [-l] [-r REMOVE_MOD_NAME] [-E LIST_ENABLE_MODS]
                       [-D LIST_DISABLE_MODS] [--downgrade] [--reload] [--service-name SERVICE_NAME] [-v]
mods_manager.py: error: argument -i/--install: expected one argument
Tantrisse commented 3 years ago

Hi, just saw this issue and made a PR to fix it.