Skip to content

Commit 0281de8

Browse files
committed
Cleanup ArgumentInterpreter
1 parent f6f666f commit 0281de8

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

src/InEngineCli/ArgumentInterpreter.cs

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -90,35 +90,8 @@ protected string MakeErrorMessage(string message = null)
9090

9191
public void InterpretPluginArguments(string[] pluginArgs, IOptions pluginOptions)
9292
{
93-
var parser = new Parser(with => with.IgnoreUnknownArguments = true);
94-
95-
//if (parser.ParseArguments(pluginArgs, pluginOptions))
96-
//{
97-
// try
98-
// {
99-
// if (subOptions == null)
100-
// ExitWithFailure(new CommandFailedException("Could not parse plugin options"));
101-
102-
// var command = subOptions as ICommand;
103-
104-
// if (command is AbstractCommand)
105-
// (command as AbstractCommand).Name = verb.Normalize();
106-
107-
// var commandResult = command.Run();
108-
109-
// if (commandResult.IsSuccessful)
110-
// ExitWithSuccess(commandResult.Message);
111-
// else
112-
// ExitWithFailure(new CommandFailedException(commandResult.Message));
113-
// }
114-
// catch (Exception exception)
115-
// {
116-
// ExitWithFailure(exception);
117-
// }
118-
//}
119-
120-
var isSuccessful = parser.ParseArguments(pluginArgs, pluginOptions, (verb, subOptions) =>
121-
{
93+
var isSuccessful = new Parser(with => with.IgnoreUnknownArguments = true)
94+
.ParseArguments(pluginArgs, pluginOptions, (verb, subOptions) => {
12295
try
12396
{
12497
if (subOptions == null)

0 commit comments

Comments
 (0)