You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users who are unfamiliar with the C getopt() function or who would like to write less code and get better help and error messages should consider using the argparse module instead.
argparse is the best practice for handling command-line options with the Python standard library.
There's also Click, a popular third-party package.
The text was updated successfully, but these errors were encountered:
bhrutledge
changed the title
Replace getopt with a friendlier command-line parser
Replace getopt with a friendlier command-line parser
Jun 19, 2021
As noted in the getopt docs:
argparse
is the best practice for handling command-line options with the Python standard library.There's also Click, a popular third-party package.
The text was updated successfully, but these errors were encountered: