watchdogctl: Refactor command & argument parser
watchdogctl: Refactor command & argument parser

This patch simplifies the command parser using an approach similar to
Finit initctl tool.  With this patch in place we can support multiple
arguments to commands, not just a single one.

Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/watchdogd,troglobit/watchdogd