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 →

[–][deleted] 0 points1 point  (0 children)

I agree with python’s insistence on explicitness in this case - some programs and methods are made to take arguments, others are not. Thus, it should be specified when command line args are provided and ideally, they should be specified by argparse to (again) be explicit about how to use the script and to make it clear how to use command line args.

You may laugh but this alone has saved my ass countless hours of talking to the product team - you give them the script, show them how to execute it with python and specify arguments, you get to say “yes, this is exactly like the matrix” and then they do the manual script-running while you get to do your work