I don't believe its possible to designate certain parameters as optional. What you could possibly do is make the users enter a fixed dummy value and provide descriptive parameter labels and sub-text.
Within the template, you can use line2 and line3 only if they are not 'dummy' values
if (@line2 !='dummy')
{
CLI {@line2}
}
}