Я пишу script, и я хочу установить переключатель --host
со значением, но если параметр --host
не указан, я хочу, чтобы разбор параметров был неудачным.
Я не могу понять, как это сделать. Документы, как представляется, указывают только, как сделать значение аргумента обязательным, а не самим переключателем.