Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the reported command name match the ToolCommand name. #24

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Solutions/Corvus.Json.SchemaGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static Task<int> Main(string[] args)
"If a --rootPath is specified, rebase the document as if it was rooted on the specified element."),
};

rootCommand.Name = "generatejsonschematypes";
rootCommand.Description = "Generate C# types from a JSON schema.";

rootCommand.AddArgument(
Expand Down Expand Up @@ -138,9 +139,9 @@ private static async Task<int> GenerateTypes(string schemaFile, string rootNames
}

}
catch (Exception)
catch (Exception ex)
{
Console.Error.WriteLine($"Unable to generate types.");
Console.Error.WriteLine(ex.Message);
return -1;
}

Expand Down