Skip to content

Commit

Permalink
Add main function
Browse files Browse the repository at this point in the history
  • Loading branch information
kphaterp committed Nov 18, 2021
1 parent f6ac719 commit 10d558c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

from docopt import docopt
opt = docopt(__doc__)
print(opt["--arg4"])
print(opt)
print(type(opt))
def main(arg4):
print(arg4)
print(opt)
print(type(opt))

if __name__ == "__main__":
main(opt["--arg4"])

0 comments on commit 10d558c

Please sign in to comment.