From fecb22ecd37e2d1353bdb39a4ad9f3120f219e6d Mon Sep 17 00:00:00 2001 From: Neel Phaterpekar Date: Thu, 19 Nov 2020 10:26:47 -0800 Subject: [PATCH] moved print statements inside main function; --- demo_copy.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/demo_copy.py b/demo_copy.py index ec78f3e..548af76 100644 --- a/demo_copy.py +++ b/demo_copy.py @@ -12,6 +12,11 @@ """ from docopt import docopt opt = docopt(__doc__) -print(opt['']) -print(opt) -print(type(opt)) + +def main(): + print(opt['']) + print(opt) + print(type(opt)) + +if __name__ == "__main__": + main()