diff --git a/README.md b/README.md index ec3c7e67a44..0687abed1ee 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The Swagger Specification has undergone 3 revisions since initial creation in 20 Swagger Codegen Version | Release Date | Swagger Spec compatibility | Notes ----------------------- | ------------ | -------------------------- | ----- -2.1.3-M1-SNAPSHOT | 2015-02-23 | 1.0, 1.1, 1.2, 2.0 | [tag v2.1.0-M1](https://github.com/swagger-api/swagger-codegen) +2.1.1-M2-SNAPSHOT | 2015-04-06 | 1.0, 1.1, 1.2, 2.0 | [master](https://github.com/swagger-api/swagger-codegen) 2.0.17 | 2014-08-22 | 1.1, 1.2 | [tag v2.0.17](https://github.com/swagger-api/swagger-codegen/tree/v2.0.17) 1.0.4 | 2012-04-12 | 1.0, 1.1 | [tag v1.0.4](https://github.com/swagger-api/swagger-codegen/tree/swagger-codegen_2.9.1-1.1) @@ -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