Skip to content

The -Verbose parameter causes "parameter is not expected" warning #1019

@John-Hart

Description

@John-Hart

When the -Verbose parameter is used with autorest.exe an error occurs: "Warning: Parameter 'Verbose' is not expected" but it does actually cause the Logger to display the Infos type messages and also the details if an exception occurs.

It's also not listed on the cli.md document

Here's an example of the -Verbose output when autorest succeeds:

The Microsoft.Rest.ClientRuntime.2.2.0 nuget package is required to compile the
generated code.
Finished generating CSharp code for C:\temp\petstore\petstore.json.
WARNING: Parameter 'Verbose' is not expected.
INFO: AutoRest Core 0.16.0.0
INFO: Initializing modeler.
INFO: Initializing modeler.
INFO: Parsing swagger json file.
INFO: Generating client model from swagger model.
INFO: Initializing code generator.
INFO: Successfully initialized CSharp Code Generator 1.0.5970.24213
INFO: Initializing code generator.
INFO: Successfully initialized CSharp Code Generator 1.0.5970.24213

Notice also, that there are two "Initializing modeler" messages. The second one is supposed to include the Modeler name and it's version.

In addition, when used the Info type messages should be displayed before the Error messages and exception details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions