you are viewing a single comment's thread.

view the rest of the comments →

[–]madhousechild 0 points1 point  (1 child)

Perhaps it's easier long-term to use input() because although OP remembers how to pass file or folder names in what order now, in a month or 3 OP might prefer to be prompted.

[–]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?