@@ -53,22 +53,23 @@ public CoreClient()
53
53
/// <returns>options</returns>
54
54
protected void ParseArguments ( string [ ] args , Options typeArguments )
55
55
{
56
- //try {
57
- // var unrecognized = typeArguments.Parse(args);
58
- // if (unrecognized.Count > 0)
59
- // {
60
- // typeArguments.PrintHelp();
61
- // foreach (var item in unrecognized)
62
- // Console.WriteLine("ERROR: {{ 'cause': {0}}}", item);
63
- // Environment.Exit(ReturnCode.ERROR_ARG);
64
- // }
65
- //}
66
- //catch
67
- //{
68
- // typeArguments.PrintHelp();
69
- // Environment.Exit(ReturnCode.ERROR_ARG);
70
- //}
71
- //this.SetUpCliLogging(typeArguments);
56
+ try
57
+ {
58
+ var unrecognized = typeArguments . Parse ( args ) ;
59
+ if ( unrecognized . Count > 0 )
60
+ {
61
+ typeArguments . PrintHelp ( ) ;
62
+ foreach ( var item in unrecognized )
63
+ Console . WriteLine ( "ERROR: {{ 'cause': {0}}}" , item ) ;
64
+ Environment . Exit ( ReturnCode . ERROR_ARG ) ;
65
+ }
66
+ }
67
+ catch
68
+ {
69
+ typeArguments . PrintHelp ( ) ;
70
+ Environment . Exit ( ReturnCode . ERROR_ARG ) ;
71
+ }
72
+ this . SetUpCliLogging ( typeArguments ) ;
72
73
}
73
74
74
75
/// <summary>
@@ -172,7 +173,7 @@ protected void CloseConnection()
172
173
protected void ArgumentExceptionHandler ( Exception ex , Options options )
173
174
{
174
175
Console . Error . WriteLine ( "Invalid command option: " + ex . Message ) ;
175
- options . PrintHelp ( ) ;
176
+ // options.PrintHelp();
176
177
this . exitCode = ReturnCode . ERROR_ARG ;
177
178
}
178
179
0 commit comments