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

restore your command's backwards compatibility -> make your command backwards compatible