From 4a3c585a8d58cc8d32f6f05bc48ff5b579dda00a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 6 Oct 2025 16:25:41 -0400 Subject: [PATCH] Assign inputs for interactive modes --- CHANGELIST.md | 1 + MPF.CLI/Features/InteractiveFeature.cs | 6 ++++++ MPF.Check/Features/InteractiveFeature.cs | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index b185315a..7e02e65a 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -12,6 +12,7 @@ - Create and use main features for CLI and Check - Create and use base feature in Check - Create and use base feature in CLI +- Assign inputs for interactive modes ### 3.4.2 (2025-09-30) diff --git a/MPF.CLI/Features/InteractiveFeature.cs b/MPF.CLI/Features/InteractiveFeature.cs index 4b1a6581..70c55165 100644 --- a/MPF.CLI/Features/InteractiveFeature.cs +++ b/MPF.CLI/Features/InteractiveFeature.cs @@ -29,6 +29,12 @@ namespace MPF.CLI.Features /// public override bool ProcessArgs(string[] args, int index) { + // Cache all args as inputs + for (int i = 1; i < args.Length; i++) + { + Inputs.Add(args[i]); + } + // Create return values CommandOptions = new Program.CommandOptions { diff --git a/MPF.Check/Features/InteractiveFeature.cs b/MPF.Check/Features/InteractiveFeature.cs index 0cf9c245..5b838c02 100644 --- a/MPF.Check/Features/InteractiveFeature.cs +++ b/MPF.Check/Features/InteractiveFeature.cs @@ -26,6 +26,12 @@ namespace MPF.Check.Features /// public override bool ProcessArgs(string[] args, int index) { + // Cache all args as inputs + for (int i = 1; i < args.Length; i++) + { + Inputs.Add(args[i]); + } + // Create return values CommandOptions = new Program.CommandOptions(); System = null;