expand general advice
This commit is contained in:
parent
18f6aabc7b
commit
b3eb4d3abe
1 changed files with 12 additions and 4 deletions
16
fillform.py
16
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)
|
||||
|
|
Loading…
Reference in a new issue