> Is it possible to load startup options from a file ini ou yaml ?
I'm not sure if this is related to argh; a use case would be helpful.
Probably something like this would do:
@command
def foo(bar=None):
config = yaml.load('conf.yaml')
print(bar or config['bar'])
Of course if the app has multiple commands and each tends to load the
config, it would be a good idea to group them as class methods and
initialize the class instance with path to config, etc.
Anyway, I think configuration is out of scope of the argument parsing library.
Andy
Anyway, I think configuration is out of scope of the argument parsing library.