This script is to add bash completion feature to the Neper software package. It is used to auto complete or suggest arguments, files, or directories by partially typing in neper.
Specifically:
- neper would show -T, -M, -S, -V and all -- options;
- neper -T would show all available -T options;
- neper -M would show all possible inputs (.tess and .msh files), directories and available -M options;
- neper -S would show all possible inputs (sim directories), files, and available -S options;
- neper -V would show all possible inputs (.tess and .msh files, sim directories) and available -V options.
- neper -T -argument would "autocomplete" to the full arguments, or list suggested full argumments. e.g. neper -T -reg would "autocomplete" to -regularization
- Where multiple files(or directories) are allowed as input, separate the file/directory names with comma ',' and auto completion will still work.