mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
[Problem] MPF.CLI expects more arguments than required #737
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Daja177 on GitHub (Aug 16, 2024).
Originally assigned to: @mnadareski on GitHub.
Version
What version are you using?
Build
What runtime version are you using?
Describe the issue
MPF.CLI expects 4 or more arguments to be able to run, otherwise the program exits with the output: "Not enough arguments have been provided, exiting..." This is despite the help output implying media type and system type are the only absolutely required arguments.
11b8dd44bb/MPF.CLI/Program.cs (L43C13-L43C33)Even if MPF.CLI requires device path and file path or custom parameters at this stage, even without this check it's able to tell if device path hasn't been supplied (and file path once #736 is fixed). Reducing this number from 4 to 2 would result in more helpful error messages like "Both a device path and file path need to be supplied, exiting..." instead of the generic "Not enough arguments have been provided, exiting..."
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Not getting this error when the required arguments have been provided, or getting an error specifying what exactly is missing, such as "Both a device path and file path need to be supplied, exiting..."