Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for default_configuration items #463

Open
michaelwood opened this issue Sep 17, 2024 · 1 comment
Open

Add documentation for default_configuration items #463

michaelwood opened this issue Sep 17, 2024 · 1 comment

Comments

@michaelwood
Copy link
Member

Add some documentation for the options that can be passed to default_configuration:

  parts = item.split()
        if len(parts) == 2 and parts[0].lower() == "skiprows" and isint(parts[1]):
            configuration["skipRows"] = max(int(parts[1]), 0)
        if len(parts) == 2 and parts[0].lower() == "headerrows" and isint(parts[1]):
            configuration["headerRows"] = max(int(parts[1]), 1)
        if len(parts) == 1 and parts[0].lower() == "ignore":
            configuration["ignore"] = True
        if len(parts) == 1 and parts[0].lower() in ("hashcomments", "hashcomment"):
            configuration["hashcomments"] = True
        if len(parts) == 2 and parts[0].lower() == "xmlroottag":
            configuration["XMLRootTag"] = parts[1]
        if len(parts) == 2 and parts[0].lower() == "rootlistpath":
            configuration["RootListPath"] = parts[1]
        if len(parts) == 2 and parts[0].lower() == "idname":
            configuration["IDName"] = parts[1]
    return configuration
@Bjwebb
Copy link
Member

Bjwebb commented Sep 17, 2024

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

No branches or pull requests

2 participants