Skip to content

Commit b1875de

Browse files
committed
Use valid examples in the provisioning and utils -o/-O help
The provisioning methods do not accept tags or context, and the utils methods do not accept context. The examples now use prefix, enabled and sign_url.
1 parent 691d1fd commit b1875de

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎cloudinary_cli/core/provisioning.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
""")
1414
@argument("params", nargs=-1)
1515
@option("-o", "--optional_parameter", multiple=True, nargs=2,
16-
help="Pass an optional parameter as a string, with no parsing. e.g. -o tags a,b")
16+
help="Pass an optional parameter as a string, with no parsing. e.g. -o prefix demo")
1717
@option("-O", "--optional_parameter_parsed", multiple=True, nargs=2,
18-
help="Pass an optional parameter and parse its value as JSON or a boolean. e.g. -O context '{\"alt\": \"cat\"}'")
18+
help="Pass an optional parameter and parse its value as JSON or a boolean. e.g. -O enabled true")
1919
@option("-ls", "--ls", is_flag=True, help="List all available methods in the Provisioning API.")
2020
@option("--save", nargs=1, help="Save output to a file.")
2121
@option("-d", "--doc", is_flag=True, help="Open the Provisioning API reference in a browser.")

‎cloudinary_cli/core/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@option("-o", "--optional_parameter", multiple=True, nargs=2,
1818
help="Pass an optional parameter as a string, with no parsing. e.g. -o tags a,b")
1919
@option("-O", "--optional_parameter_parsed", multiple=True, nargs=2,
20-
help="Pass an optional parameter and parse its value as JSON or a boolean. e.g. -O context '{\"alt\": \"cat\"}'")
20+
help="Pass an optional parameter and parse its value as JSON or a boolean. e.g. -O sign_url true")
2121
@option("-ls", "--ls", is_flag=True, help="List all available utility methods.")
2222
def utils(params, optional_parameter, optional_parameter_parsed, ls):
2323
if ls or len(params) < 1:

0 commit comments

Comments
 (0)