Support long options in docvalid command