getopt: cleanup add_log_options()

Signed-off-by: Karel Zak <kzak@redhat.com>