Open andreasschulze opened 4 hours ago
The Python 'argparse' library can display a help text ("Usage info") when required arguments are omitted:
I agree that all those errors need to be catched and some useful message must be given.
However, unfortunately argparse is not the only source of configuration, so we can´t just switch certain arguments to mandatory. That mechanism will be used for the tlsrpt-fetcher process which needs to be called with one or two positional arguments (day and domain), but it cannot be used for all the configuration settings which could also come from the environment or a configuration file.
when calling tlsrpt-* scripts without any parameter, users should see a meaningful message. Currently, python Traceback happen.
reason in this case: contact_info was unset
reason here: receiver_socketname was unset