Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Add support for fomatter options #71

@rgreinho

Description

@rgreinho

Issue Type

  • Feature request

Current Behavior

Formatter options are not supported.

Expected Behavior

Add a flag which would allow the user to specify one or multiple options for a formatter.

The main use case is for the SQL formatter, but other formatters could benefit from it (i.e. specify the number of space to indent the JSON output).

A name for the flag could be --fomat-options and should take a list of key/value pairs as parameters.

Examples:

scrapd -v --format sql --fomat-options engine=postgreql,upsert=true,createtable=true,droptableifexists=true
scrapd -v --format json --fomat-options indent=4

If an option is unknown, the process should log the culprit, but continue nonetheless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions