BrettMayson / HEMTT

Build System for Arma 3
https://brettmayson.github.io/HEMTT
GNU General Public License v2.0
109 stars 40 forks source link

[Feature Request] Add ability to pass CLI params to hemtt executable for launch presets #735

Closed DartRuffian closed 3 weeks ago

DartRuffian commented 1 month ago

Allow launch presets to specify hemtt params.

A basic use-case is adding a preset to binarize files and disable filepatching for testing animations quickly. Doing hemtt launch -b --no-filepatching is fine, but might be a bit annoying to remember the syntax (i.e. "Is it -no-filepatching or -no-file-patching" or something)

Example:

[hemtt.launch.animations]
hemtt_parameters = [
    "-b",
    "--no-filepatching",
]
BrettMayson commented 1 month ago

I think just cli or options would be good, shouldn't be too confusing with context

Also, should this just allow the full names?

args = [
  "--binarize",
  "--quick",
]

rather than allowing


args = [
  "-b",
  "-Q",
]
DartRuffian commented 1 month ago

Theoretically it would just be passed to the executable directly, why make it so you can't use the shorthand? Most people would probably still use the full parameter anyway for readability, but seems like extra logic that doesn't really need to be there

BrettMayson commented 1 month ago

It would not be passed to the executable, we're already running

DartRuffian commented 1 month ago

Yeah that makes sense, clearly wrote it too early in the morning. Yeah probably only allow fully spelled out parameters for readability