Advertisement
Light1992

Guida Yaggo

Jun 25th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. # What is yaggo?
  2.  
  3. Yaggo is a tool to generate command line parsers for C++. Yaggo stands
  4. for "Yet Another GenGetOpt" and is inspired by [GNU Gengetopt](https://www.gnu.org/software/gengeto$
  5.  
  6. It reads a configuration file describing the switches and argument for
  7. a C++ program and it generates one header file that parses the command
  8. line using getopt_long(3). See the Example section below for more details.
  9.  
  10. # Installation
  11.  
  12. ## Quick and easy
  13.  
  14. Download the standalone script from the [release](https://github.com/gmarcais/yaggo/releases)
  15. and copy it into a directory in your PATH (e.g. `~/bin`)
  16.  
  17. From the source tree, the same is achieved with:
  18.  
  19. ```Shell
  20. make DEST=$HOME/bin
  21. ```
  22.  
  23. ## As a gem
  24.  
  25. Download the gem from the [release](https://github.com/gmarcais/yaggo/releases) and install it
  26. with `sudo gem install ./yaggo-1.5.8.gem` (adjust the version!).
  27.  
  28. Similarly, from the source tree, first generate the gem
  29. and then install it. For example here with version 1.5.3:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement