Skip to content

git2cpp -v prints too much information #26

@ianthomas23

Description

@ianthomas23

If you run git2cpp -v or git2cpp --version you get the version information as requested but also the help information, so we need to avoid displaying the help information if the version flag is set, probably here:

if (app.get_subcommands().size() == 0)

We could modify the test_version to assert that only one line is written to stdout, perhaps using something like p.stdout.count(b('\n')).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions