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

myproject.settings.main -> myproject.settings? (doubt if most projects use a .main convention)