Skip to content

Commit

Permalink
fix(jans-cli): --schema option renamed to --schema-sample (#8739)
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
devrimyatar committed Jun 19, 2024
1 parent 36ea631 commit f602fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jans-cli-tui/cli_tui/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def read_swagger(op_mode):
parser.add_argument("--endpoint-args",
help="Arguments to pass endpoint separated by comma. For example limit:5,status:INACTIVE")

parser.add_argument("--schema", help="Get sample json schema")
parser.add_argument("--schema-sample", help="Get sample json schema template")

parser.add_argument("-CC", "--config-api-mtls-client-cert", help="Path to SSL Certificate file")
parser.add_argument("-CK", "--config-api-mtls-client-key", help="Path to SSL Key file")
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def help_for(self, op_name):
schema_path_string = '{}{}'.format(mode_suffix, os.path.basename(schema_path))
if ' ' in schema_path_string:
schema_path_string = '\"{}\"'.format(schema_path_string)
print("To get sample schema type {0}{2} --schema <schema>, for example {0}{2} --schema {1}".format(sys.argv[0], schema_path_string, scim_arg))
print("To get sample schema type {0}{2} --schema-sample <schema>, for example {0}{2} --schema-sample {1}".format(sys.argv[0], schema_path_string, scim_arg))

def render_json_entry(self, val):
if isinstance(val, str) and val.startswith('_file '):
Expand Down

0 comments on commit f602fd1

Please sign in to comment.