You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that's probably a bad idea. Configuration files are somewhat simpler from a user point of view, but they significantly increase the complexity of a program. If Python provided a standard and unified way to read options from multiple sources (command line arguments, environment variables, configuration files), then it might be fine to support all those sources, but since there is no such standard, it's probably better to avoid the extra complexity.
I recommend saving your github-backup commands in a shell script instead. It's what I do.
I too would lean on a shell script (which I do in my use). However, argparse natively supports config files via fromfile_prefix_chars, that'd give you github-backup @myconfig without any new packages, which this project has traditionally avoided.
Activity
Changaco commentedon May 4, 2026
I think that's probably a bad idea. Configuration files are somewhat simpler from a user point of view, but they significantly increase the complexity of a program. If Python provided a standard and unified way to read options from multiple sources (command line arguments, environment variables, configuration files), then it might be fine to support all those sources, but since there is no such standard, it's probably better to avoid the extra complexity.
I recommend saving your
github-backupcommands in a shell script instead. It's what I do.rsb-23 commentedon May 4, 2026
Seems fair.
Also, can be a good addition too.
Will check if there is any unified way to achieve this.
Iamrodos commentedon Jul 29, 2026
@rsb-23 are you still interested in this?
I too would lean on a shell script (which I do in my use). However, argparse natively supports config files via
fromfile_prefix_chars, that'd give yougithub-backup @myconfigwithout any new packages, which this project has traditionally avoided.You want to look at that?
rsb-23 commentedon Jul 29, 2026
Yes, this seems interesting will look at it.