new 'getargs' method (based on the 'getopts' model)