Low: tools: Fix action danger check in cibadmin
Functionize checking whether the action is dangerous based on the
options struct. This way we don't have to check danger while parsing
options, which can result in the action still being deemed dangerous
after being replaced by a "safe" action.
This also facilitates the move to GOption.
Ref T107
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>