Skip to content

Commit

Permalink
feat: jans-cli display accepted values before input (ref: #892)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Mar 2, 2022
1 parent 76854c7 commit ae050ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ def get_input(self, values=[], text='Selection', default=None, itype=None,
default = False
else:
type_text = "Type: " + itype
if values:
type_text += ', Valid values: {}'.format(self.colored_text(', '.join(values), bold_color))

if help_text:
help_text = help_text.strip('.') + '. ' + type_text
Expand Down

0 comments on commit ae050ae

Please sign in to comment.