Please review

1. Check option conflict
    - --testplan, --test, --rerun-fail
    - --testplan/--rerun-fail, --id
    - --all, --manual
2. Check arguments existence:
    --testplan, --rerun-fail, --test, --capability, --deviceid, --id

3. Exit the command when testplan XML or fail result XML is invalid