added support for dry-run and trace options
Signed-off-by: Mike Day <ncmike@ncultra.org>