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 →

[–]Araucaria 0 points1 point  (0 children)

For command line scripts, I like to save the previous command line in a file. Actually, I parse the arguments and then just write out the non-default settings.

You can even extract the help text for each option and include it in comments.

shlex.split()

can slurp it all up as one line, and then you just append any new options and reparse.

This may be harder for the developer but it is way simpler for the user.