From 5de04fa6129fd22ddd32b0d03d17b1d82397d66e Mon Sep 17 00:00:00 2001 From: wing328 Date: Wed, 5 Apr 2017 21:49:06 +0800 Subject: [PATCH] omitted command line result --- README.md | 81 +++---------------------------------------------------- 1 file changed, 3 insertions(+), 78 deletions(-) diff --git a/README.md b/README.md index 72067054b72..9ae8c0feb48 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ 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 `help generate` command: +with a number of options. You can get the options with the `help generate` command (below only shows partal results): ``` NAME @@ -279,84 +279,9 @@ OPTIONS adds authorization headers when fetching the swagger definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values + +...... (results omitted) - --additional-properties - sets additional properties that can be referenced by the mustache - templates in the format of name=value,name=value - - --api-package - package for generated api classes - - --artifact-id - artifactId in generated pom.xml - - --artifact-version - artifact version in generated pom.xml - - -c , --config - Path to json configuration file. File content should be in a json - format {"optionKey":"optionValue", "optionKey1":"optionValue1"...} - Supported options can be different for each language. Run - config-help -l {lang} command for language specific config options. - - -D - sets specified system properties in the format of - name=value,name=value - - --group-id - groupId in generated pom.xml - - -i , --input-spec - location of the swagger spec, as URL or file (required) - - - --import-mappings - specifies mappings between a given class and the import that should - be used for that class in the format of type=import,type=import - - --instantiation-types - sets instantiation type mappings in the format of - type=instantiatedType,type=instantiatedType.For example (in Java): - array=ArrayList,map=HashMap. In other words array types will get - instantiated as ArrayList in generated code. - - --invoker-package - root package for generated code - - -l , --lang - client language to generate (maybe class name in classpath, - required) - - --language-specific-primitives - specifies additional language specific primitive types in the format - of type1,type2,type3,type3. For example: - String,boolean,Boolean,Double - - --library - library template (sub-template) - - --model-package - package for generated models - - -o , --output - where to write the generated files (current dir by default) - - -s, --skip-overwrite - specifies if the existing files should be overwritten during the - generation. - - -t