in
Size: a a a
in
BS
SA
SA
SA
BS
RB
💭П
args = parser.parse_args()required=True. Я могу поймать ошибку, и выдать parser.print_help(). Но мне не нравиться текст:usage: arg_parse.py [-h] --path PATH [--file FILE]
arg_parse.py: error: the following arguments are required: --path
💭П
SA
💭П
VR
💭П
ad
💭П
💭П
💭П
def error(self, message):
"""error(message: string)
Prints a usage message incorporating the message to stderr and
exits.
If you override this in a subclass, it should not return -- it
should either exit or raise an exception.
"""
self.print_usage(_sys.stderr)
args = {'prog': self.prog, 'message': message}
self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
VR
VR