From 5b2eebea674012bd4ca6b965c901e8868375b778 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 27 May 2018 17:47:50 +0200 Subject: oldconfig: Show help with '?' instead of '??' This matches the C tools. Hadn't noticed they had the same feature. --- examples/oldconfig.py | 6 +++--- 1 file 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 -- cgit v1.2.3