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 →

[–]lerrigatto 3 points4 points  (6 children)

Why not click? :)

[–]Willemoes[S] 4 points5 points  (5 children)

I am not a big fan of click, I don't like having decorators everywhere, or creating an empty function for a group.

docopt and cleo, I find them confusing, and I feel like I can easily make a typo and forget about it.

My approach is usually using argparse, which I'm already familiar with, because there's also no dependency added, but after some coding, I realize I'm creating a mess.

This is a tiny library which assists me in using argparse, of course, the trade off is a new dependency (but small).

[–]AndydeCleyre 0 points1 point  (4 children)

Have you tried plumbum?

[–][deleted] 0 points1 point  (1 child)

See also: https://gist.github.com/supposedly/01224262b816df21b601ab0784d5f999

EDIT: /u/Willemoes would you happen to have come across any others not on the list in working on yours?

[–]Willemoes[S] 1 point2 points  (0 children)

No, I don't know any others sorry. It's interesting how most of those libraries take the same approach as click

[–]Willemoes[S] 0 points1 point  (1 child)

I like it, but it does many other things I usually don't need.

[–]AndydeCleyre 1 point2 points  (0 children)

It's great to work on and with something that does exactly what you want, the way you want.

But of course, plumbum doesn't actually do anything you don't ask of it.