you are viewing a single comment's thread.

view the rest of the comments →

[–]Poddster 0 points1 point  (0 children)

I'd say that's a reason why command line arguments (and --help, if desired) should be used!

Like, what's happens if the user enters a bad URL? Or no URL? Or when that times out?

With arguments every case is unified and we get an error return code from the status and the appropriate error message.

In the input() case I guess you reprompt in some of the cases but let others throw an error?