Skip to content

Commit

Permalink
Adding params-using CliProgram.GetCommand() overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Nov 14, 2023
1 parent ffd7762 commit 21b3ed2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Lombiq.HelpfulLibraries.Cli/CliProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public class CliProgram

public CliProgram(string command) => _command = command + OperatingSystemHelper.GetExecutableExtension();

/// <summary>
/// Creates a <see cref="Command"/> object based on the passed <paramref name="arguments"/>.
/// </summary>
public Command GetCommand(params object[] arguments) =>
GetCommand(arguments.ToList());

/// <summary>
/// Creates a <see cref="Command"/> object based on the passed <paramref name="arguments"/>.
/// </summary>
Expand Down

0 comments on commit 21b3ed2

Please sign in to comment.