summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-27 17:47:50 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-27 17:47:50 +0200
commit5b2eebea674012bd4ca6b965c901e8868375b778 (patch)
tree865e77ba0e7e44ced44e5d798f6b4d0c23c88a6c /examples
parentb20db3b8a79c3e4e3421b1882fa80964726bdb4b (diff)
oldconfig: Show help with '?' instead of '??'
This matches the C tools. Hadn't noticed they had the same feature.
Diffstat (limited to 'examples')
-rw-r--r--examples/oldconfig.py6
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