First, create an instance of the library for your touchscreen. The digital pin used for chip select is required. The normal MISO, MOSI and SCK pins will be used automatically. #define CS_PIN 8 XPT2046 ...
The application should define the arguments and the commands it requires and the library will figure out how to parse them. It will automatically generate help and usage messages, as well as errors ...