diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-27 17:47:50 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-27 17:47:50 +0200 |
| commit | 5b2eebea674012bd4ca6b965c901e8868375b778 (patch) | |
| tree | 865e77ba0e7e44ced44e5d798f6b4d0c23c88a6c /examples/oldconfig.py | |
| parent | b20db3b8a79c3e4e3421b1882fa80964726bdb4b (diff) | |
oldconfig: Show help with '?' instead of '??'
This matches the C tools. Hadn't noticed they had the same feature.
Diffstat (limited to 'examples/oldconfig.py')
| -rw-r--r-- | examples/oldconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/oldconfig.py b/examples/oldconfig.py index 4f8421a..5751fdc 100644 --- a/examples/oldconfig.py +++ b/examples/oldconfig.py @@ -11,8 +11,8 @@ # add (look at the parents of each item and print all menu prompts and # comments unless they have already been printed). # -# Bonus feature: Inputting '??' on the prompt will display the help text of the -# item, if any. Hopefully no one will want to use that as a value. +# Inputting '?' on the prompt will display the help text of the item, if any. +# Hopefully no one will want to use that as a value. # # Sample session: # @@ -183,7 +183,7 @@ def do_oldconfig_for_node(node): node.prompt[0], name_and_loc_str(sym), default_value_str(sym))) - if val == "??": + if val == "?": print_help(node) continue |
