expand general advice

This commit is contained in:
Bela 2018-04-16 12:14:27 +02:00
parent 18f6aabc7b
commit b3eb4d3abe

View file

@ -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)