Skip to content

Commit

Permalink
Added new arg and print function
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaroub committed Nov 22, 2020
1 parent c7ceeba commit b4c1930
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# author: Tiffany Timbers
# date: 2020-01-15

"""This script prints out docopt args.
Usage: docopt.py <arg1> --arg2=<arg2> [--arg3=<arg3>]
Options:
<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)
"""

from docopt import docopt
opt = docopt(__doc__)
print(opt)
print(type(opt))

0 comments on commit b4c1930

Please sign in to comment.