Skip to content

Commit

Permalink
Added new print function
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaroub committed Nov 22, 2020
1 parent b4c1930 commit 6d1ef4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
<arg> Takes any value (this is a required positional argument)
--arg2=<arg2> Takes any value (this is a required option)
[--arg3=<arg3>] Takes any value (this is an optional option)
[<arg4>] Takes any value (this is an optional positional option)
"""

from docopt import docopt
opt = docopt(__doc__)
print(opt)
print(type(opt))
print(opt("<arg4>"))

0 comments on commit 6d1ef4b

Please sign in to comment.