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