Skip to content

stats and frequency --output parameter discrepancy #3070

@kulnor

Description

@kulnor

There is a slight behavioural discrepancy between the stats and frequency commands.

For stats, if I do not specify an --output parameter, a <basename>.stats.csv file is automatically created, and the results are also sent to stdout

For frequency, I must provide a --output parameter along with a filename to produce a CSV file, and the results in that case are not sent to stdout

This could be reconciled as follows:

  • if no --output parameter is specified, the results are only sent to stdout
  • if --output is specified without a filename, a CSV file is created as <basename>.stats.csv or <basename>.freqs.csv
  • If --output is specified with a filename, it is used to save the CSV file (current behaviour)
  • When --output is specified, results are not sent to stdout

Note that this could introduce a breaking change for current users or existing workflows that expect' stats' to produce a CSV file without the --output parameter.

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