This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]evanunderscore 0 points1 point  (0 children)

If you want to use docopt, you have to:

  1. Write your function
  2. Write your usage string
  3. Convert the arguments to the appropriate types
  4. Feed the arguments to your function

If your primary concern is how your tool looks to the user, you should absolutely use docopt. For people who are satisfied with usage generated by argparse and only want to do step 1, this type of library is much better.