Skip to content

Misleading CLI Argument Parsing for Ingestion #5

Description

@anushagarg6

The --xml-dir argument's help string states "Defaults to: {XML_DIR}". However, it sets default=None. Because it expects an argument (type=str), if the user runs python -m ingest.ingest --xml-dir without specifying a path, argparse will throw an error. If the user doesn't pass the flag at all, it falls back to None and runs the HTML ingestion instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions