Move actions into own enum obj.
Clean up parsing logic

For case of filename like “file -hello -hello -hello.jpg”, correctly
check for valid option