Skip to content

Commit

Permalink
Add force parameter to SwaggerToSdk CLI (Azure#11609)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel authored May 23, 2020
1 parent a6f20b9 commit 5f2ba44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/azure-sdk-tools/packaging_tools/generate_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def generate_main():
parser.add_argument('--autorest',
dest='autorest_bin',
help='Force the Autorest to be executed. Must be a executable command.')
parser.add_argument("-f", "--force",
dest="force", action="store_true",
help="Should I force generation if SwaggerToSdk tag is not found")
parser.add_argument("-v", "--verbose",
dest="verbose", action="store_true",
help="Verbosity in INFO mode")
Expand All @@ -127,7 +130,8 @@ def generate_main():
args.project,
args.readme,
args.restapi_git_folder,
args.autorest_bin)
args.autorest_bin,
args.force)

if __name__ == "__main__":
generate_main()

0 comments on commit 5f2ba44

Please sign in to comment.