Skip to content

Commit

Permalink
Merge pull request #31 from pablopalacios/repl
Browse files Browse the repository at this point in the history
repl: added possibility to edit symmetric object options
  • Loading branch information
otavio committed Aug 4, 2017
2 parents b5491c6 + 311120a commit 861f4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uhu/repl/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def prompt_object_option(obj):
:param obj: an uhu `Object` instance.
"""
msg = 'Choose an option: '
options = sorted(opt.metadata for opt in obj.options if not opt.symmetric)
options = sorted(opt.metadata for opt in obj.options if not opt.volatile)
completer = WordCompleter(options)
validator = ContainerValidator('option', options)
option = prompt(msg, completer=completer, validator=validator)
Expand Down

0 comments on commit 861f4d6

Please sign in to comment.