Portál AbcLinuxu, 13. května 2025 23:48
Co takhle sip projit dokumentaci ... http://docs.python.org/py3k/library/argparse.html#module-argparse
ArgumentParser.exit(status=0, message=None)¶ This method terminates the program, exiting with the specified status and, if given, it prints a message before that.což mi vypíše USAGE a ukončí, při zavolání a ne pouze při chybě.. Můžete mi prosím poradit konkrétně?,děkuji
jde oto zavolat netodu .error() objektu ArgumentParser po detekovani chyby ......
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.