We need to explain the line: if __name__ == "__main__":
what does this mean? action="store_true"
(may be answer to question 2.) How do we tell it when it should expect a value after an argument and when it shouldn't? e.g. -t needs a value afterwards but -p doesn't.
We need to explain the line:
if __name__ == "__main__":
what does this mean?
action="store_true"
(may be answer to question 2.) How do we tell it when it should expect a value after an argument and when it shouldn't? e.g.
-t
needs a value afterwards but-p
doesn't.