‘required’ is an invalid argument for positionals in python command

You created a positional argument (no -- option in front of the name). Positional arguments are always required. You can’t use required=True for such options, just drop the required. Drop the default too; a required argument can’t have a default value (it would never be used anyway):

parser.add_argument('archive',
    help='Make import archive events'
)

If you meant for archive to be a command-line switch, use --archive instead.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)