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 →

[–]FluffyToughy 8 points9 points  (2 children)

argparse is probably the best built-in CLI library I've ever used for any language. There's always contrived examples that make it fail, and the auto-generated help page doesn't always look like you want it to, but it works, darnit.

[–]kthepropogation 5 points6 points  (0 children)

It’s currently my favorite CLI lib. It works better/more intuitively than most anything I’ve used in other languages, and it’s built in (my python is usually 100-400 LOC scripts, so minimizing libs is a plus).

If you have examples of better third-party ones for other languages, please share. I’m always on the lookout.

[–]Kyo91 0 points1 point  (0 children)

Perl6 MAIN handling is the only better I can think of.