Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: c129b9c0ca78d0ab3a10a83f9dc396652f696930
https://github.com/tribe29/checkmk/commit/c129b9c0ca78d0ab3a10a83f9dc396652…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2021-11-29 (Mon, 29 Nov 2021)
Changed paths:
M agents/cmk-agent-ctl/src/certs.rs
M agents/cmk-agent-ctl/src/cli.rs
M agents/cmk-agent-ctl/src/config.rs
M agents/cmk-agent-ctl/src/main.rs
M agents/cmk-agent-ctl/src/tls_server.rs
Log Message:
-----------
cmk-agent-ctl: Some refactoring
- Rename '-h' host_name argument shortcut '-H' to enable help text with
'-h'
- Pass all errors to main() and handle/return there
- Parse arguments as first action to enable help text generation or
detect malformatted arguments before possibly running into another error.
- Split main() into subfunctions
Change-Id: Id26f5aef8df0fd423c38b69bf8f0c8134cafad49