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

The deprecation warning is already raised in `create_parser`. It would be superfluous here.