batch-file If statements Comparing strings


Example

IF "%~1" == "-help" (
    ECHO "Hello"
)

where %1 refers to the first command line argument and ~ removes any quotes that were included when the script was called.