Skip to content

[Bug]: make run doesn't pass arguments #982

@yak3d

Description

@yak3d

Troubleshooting

  • I have read the documentation, available at wiki.furglitch.com
  • I have read the troubleshooting documentation, available at wiki.furglitch.com
  • I have confirmed that my issue has not already been reported.

Installer version

7.0.0-rc3

Targeted game

Multiple / Other (list in 'Additional Info')

Game Launcher

Steam

Linux Distro

CachyOS

Proton/Wine Version

Proton 11 CachyOS

Logs

make run -- install --help

Produces:

PYTHONPATH=src/mo2-lint:src uv run src/mo2-lint/__init__.py
2026-05-23 15:47:30.653 | DEBUG    | shared.logger:remove_loggers:16 - Removing existing loggers
2026-05-23 15:47:30 | INFO     | INSTALLER | Checking for updates.
2026-05-23 15:47:30 | INFO     | INSTALLER | No updates available.
2026-05-23 15:47:30 | INFO     | INSTALLER | Pulling latest configuration files from GitHub.
Usage: __init__.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  install    Create a new Mod Organizer 2 instance.
  list       List existing Mod Organizer 2 instances.
  pin        Pin the Mod Organizer 2 installation in the specified...
  uninstall  Uninstall an existing Mod Organizer 2 instance.
  unpin      Unpin the Mod Organizer 2 installation in the specified...
  update     Update the Mod Organizer 2 installation in the specified...
make: *** [Makefile:4: run] Error 2

Calling with make run install --help produces the make help as expected.

What happened?

Unable to invoke make run with arguments to pass to __init__.py.

What did you expect to happen?

make doesn't pass arguments in the same way a shell script does, so truthfully I didn't expect it to work. It would be convenient to pass an ARGS variable to make like:

make run ARGS="install starfield /home/yak/.local/share/mo2-lint/starfield -p root-builder"

We can then pass ARGS to python like:

run:
	PYTHONPATH=src/mo2-lint:src uv run src/mo2-lint/__init__.py $(ARGS)

Steps to reproduce the issue

  1. Invoke make run as per the contrib docs
  2. Notice it just prints the default mo2-lint help instead of accepting your args

Additional Notes

Hi there! I saw my last issue was deleted, did I do something wrong? Just wanted to make sure I didn't do something I wasn't supposed to, was just trying to report a possible enhancement. I looked to see if it was closed and had a comment but I couldn't find it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions