From b3eb4d3abe46c0fa1e4c52212ab2b2aa9d4a7093 Mon Sep 17 00:00:00 2001 From: Bela Date: Mon, 16 Apr 2018 12:14:27 +0200 Subject: [PATCH] expand general advice --- fillform.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/fillform.py b/fillform.py index 00b0be5..1ad602f 100755 --- a/fillform.py +++ b/fillform.py @@ -242,11 +242,20 @@ def readDataPaths(configs): def generalAdvice(): """Return a text that describes how to use the questions.""" - return("\n".join(["You will be asked questions.", + return("\n".join(["", + "You will be asked questions.", "Type '?' to get a more elaborative explanation" + - "for the question.", + " for the question.", "Type Ctrl + D to input nothing at this place.", - "Type Ctrl + C to end the input, creating the pdf."])) + "Type Ctrl + C to end the input, creating the pdf.", + "When given a choice, you can just hit Enter and " + + "get the default", + "or you type one of the options " + + "(the texts before '=') completely", + "or you type one of the descriptions " + + "(the texts after '=') partly." + + " Any string ignoring case that is the begin" + + " of exactly one description works"])) if __name__ == "__main__": @@ -255,7 +264,6 @@ if __name__ == "__main__": except argparse.ArgumentTypeError as e: print("Error while parsing the command line arguments:\n", e) else: - print("debug:", arguments) config = readformdata.listFields([], arguments["config"]) # make dict out of [[]] list + dict from config file data = readDataPaths(config)