Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C csvkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wireservice
  • csvkit
  • Issues
  • #998
Closed
Open
Issue created Nov 12, 2018 by Administrator@rootContributor

csvjoin does not pass through single file

Created by: kundor

The help text for csvjoin states

 positional arguments:
  FILE                  The CSV files to operate on. If only one is specified,
                        it will be copied to STDOUT.

This doesn't seem to be true, however. If I run csvjoin with a single file argument, it gives me:

csvjoin: error: You must specify at least two files to join.

I'd prefer if the documented behavior was true. I have a little script which combines grades in CSV files using csvjoin and csvcut to combine different assignments in the same section, followed by csvstack for multiple sections. If there happens to just be one assignment from each section, only one file would be given to csvjoin and it refuses to pass it through, so I have to put a special case in my script, which is annoying.

This is with csvkit version 1.0.3 and Python 3.6.3.

Assignee
Assign to
Time tracking