Skip to content

Print version without help information#27

Merged
JohanMabille merged 1 commit intomainfrom
version-print
Jul 29, 2025
Merged

Print version without help information#27
JohanMabille merged 1 commit intomainfrom
version-print

Conversation

@ianthomas23
Copy link
Member

This fixes the printing of version information. Before this PR it also prints the help information:

$ ./git2cpp -v
git2cpp version 0.0.2 (libgit2 1.9.1)
Git using C++ wrapper of libgit2 


./git2cpp [OPTIONS] [SUBCOMMAND]


OPTIONS:
  -h,     --help              Print this help message and exit 
  -v,     --version           Show version 

SUBCOMMANDS:
  init                        Explanation of init here 
  status                      Show modified files in working directory, staged for your next 
                              commit 
  add                         Add file contents to the index 
  branch                      List, create or delete branches 
  checkout                    Switch branches or restore working tree files 
  clone                       Clone a directory into a new repository 

After this fix just the version information is printed:

$ ./git2cpp -v
git2cpp version 0.0.2 (libgit2 1.9.1)

Fixes #26.

@ianthomas23 ianthomas23 added the bug Something isn't working label Jul 29, 2025
@JohanMabille JohanMabille merged commit f4f5c0f into main Jul 29, 2025
1 check passed
@JohanMabille
Copy link
Member

Thanks for fixing my bug ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

git2cpp -v prints too much information

2 participants