Fixed #19973 -- Replaced optparse by argparse in management commands

okay, seems fine to keep as-is.