diff --git a/README.md b/README.md index ec3c7e67a445..bb52eb3a393b 100644 --- a/README.md +++ b/README.md @@ -52,23 +52,41 @@ java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -o samples/client/petstore/java ``` -With a number of options. You can get the options with the -h flag: +With a number of options. You can get the options with the `help generate` command: + ``` -usage: Codegen - -a,--auth addes authorization headers when fetching the - swagger definitions remotely. Pass in a - URL-encoded string of name:header with a comma - separating multiple values - -d,--debug-info prints additional info for debugging - -h,--help shows this message - -i,--input-spec location of the swagger spec, as URL or file - -l,--lang client language to generate. - Available languages include: - [android, async-scala, java, jaxrs, nodejs, - objc, scalatra, scala, dynamic-html, html, - swagger, tizen, php, ruby, python] - -o,--output where to write the generated files - -t,--template-dir folder containing the template files +NAME + swagger generate - Generate code with chosen lang + +SYNOPSIS + swagger generate [(-a | --auth )] + (-i | --input-spec ) + (-l | --lang ) + [(-o | --output )] + [(-t