SYNOPSIS
mapping /daemon/commands->getopt( string input, string valid_options )
FILE
/daemon/commands/getopt.h
DESCRIPTION
Parses the input string and returns a mapping with all found options and a
key "rest" which contains everything not matched as option