Commit graph

12 commits

Author SHA1 Message Date
Benjamin Renard
4d4e8f133b Fix some pylint warnings 2021-11-23 13:08:44 +01:00
Benjamin Renard
d15c4f36fb Config: add configure method
This method is an entry point of a script you could use to created your 
configuration file.

Note: make sure to load to define all your configuration section and 
options
before running it.
2021-11-23 13:02:12 +01:00
Benjamin Renard
6601891f9d config: add ask_values and execute_callback parameters to parse_arguments_options 2021-11-23 12:35:40 +01:00
Benjamin Renard
2e829c4cc3 config: add ask_values method that allowing interactive configuration 2021-11-23 12:34:50 +01:00
Benjamin Renard
e058d315d4 config: BaseOption.set now also set parser option value 2021-11-23 12:31:33 +01:00
Benjamin Renard
8438f95e68 Config: Add config_file_env_variable parameter
The new config_file_env_variable parameter allow to specify environment
variable name that will be used to determine configuration file path if
it's not explicitly provided using -c/--config parameter.
2021-11-19 16:16:46 +01:00
Benjamin Renard
e6ce412db0 Config: Implement custom argparse TextHelpFormatter to keep line return 2021-11-19 16:13:36 +01:00
Benjamin Renard
366260e92a Config.get_arguments_parser: allow to override argparse description 2021-11-18 21:20:53 +01:00
Benjamin Renard
4691ba7386 config: Add -C/--console parameter 2021-11-18 19:55:44 +01:00
Benjamin Renard
94ed2e50fd config.BooleanOption: change default argument name to add enable/disable 2021-11-06 15:15:03 +01:00
Benjamin Renard
f8d78f6fe2 config.BaseOption: add no_arg parameter 2021-11-06 15:14:06 +01:00
Benjamin Renard
dc0f17dd20 Add config lib 2021-11-03 17:38:31 +01:00