die() and call sites: Simplified. In case of getopt error, the code
tried to print the module docstring, but in an unreachable line. In case of more than 2 positional args, the code died with a mysterious "unpack tuple of wrong size" exception; check for the correct # of args directly instead. Print all error msgs to stderr instead of stdout.
Showing
Please register or sign in to comment