Add shell completion of sub-configuration names

Does not work with sub configuration names that contains one or more
white spaces.
This commit is contained in:
Martin Lund 2022-10-16 23:01:08 +02:00
parent bf7b032649
commit a97b2c00cd
6 changed files with 90 additions and 30 deletions

View file

@ -45,6 +45,12 @@ int main(int argc, char *argv[])
/* Parse command-line options (1st pass) */
options_parse(argc, argv);
if (option.complete_sub_configs)
{
config_file_show_sub_configurations();
return status;
}
/* Parse configuration file */
config_file_parse();