unified handling of opts/args for actions