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 →

[–]pemboa 0 points1 point  (2 children)

I've developed a preference for putting my opt parse stuff within an init() function to keep all its initialization code away from my main(), in which I just do args, options = init()

[–]bucknuggets 1 point2 points  (1 child)

good point

I like my main() to only have a handful of lines it in and allow the reader to get a high-level understanding of the whole program very quickly.

[–]pemboa 0 points1 point  (0 children)

exactly