Skip to content

Allow writing file from command line aguments #14

@avalonwilliams

Description

@avalonwilliams

Currently to write a compile_commands.json from the output of the command you have to do this:

compdb -p build/ list > compile_commands.json

While this is fine for just using the plain CLI, it is problematic for automating the process in programs that do not use the shell, but call the program directly.

I think that there should be a command line option to write the output to a file, not to stdout, so writing compile_commands.json could be like this:

compdb -o compile_commands.json -p build/ list

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions