mirror of
https://github.com/SabreTools/MPF.git
synced 2026-04-30 02:40:05 +00:00
Assign inputs for interactive modes
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -29,6 +29,12 @@ namespace MPF.CLI.Features
|
||||
/// <inheritdoc/>
|
||||
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
|
||||
{
|
||||
|
||||
@@ -26,6 +26,12 @@ namespace MPF.Check.Features
|
||||
/// <inheritdoc/>
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user