79 lines
1.4 KiB
Markdown
79 lines
1.4 KiB
Markdown
## cli-flag-collection
|
|
A small flag printing program written in C++23!
|
|
|
|
---
|
|
|
|
## Installation:
|
|
For now my program is not in any repo so you have to build it from source.
|
|
|
|
- Release + Static (Best performance and portability):
|
|
`cfc-cli-static`
|
|
|
|
- Release (same as above just not static):
|
|
`cfc-cli-release`
|
|
|
|
- Debug:
|
|
`cfc-cli-debug`
|
|
|
|
### Building from source:
|
|
#### Dependencies:
|
|
- git
|
|
- gcc
|
|
- make
|
|
- C++23
|
|
|
|
Firstly you pull this repo with:
|
|
|
|
```bash
|
|
git clone https://codeberg.org/MysteryBirb/cli-flag-collection.git
|
|
```
|
|
|
|
then cd into it:
|
|
|
|
```bash
|
|
cd cli-flag-collection
|
|
```
|
|
|
|
To compile the regular release version you just run:
|
|
|
|
```bash
|
|
make
|
|
```
|
|
for the static release you run:
|
|
|
|
```bash
|
|
make static
|
|
```
|
|
|
|
lastly for the debug version:
|
|
|
|
```bash
|
|
make debug
|
|
```
|
|
|
|
to clean all binaries you just run:
|
|
|
|
```bash
|
|
make clean
|
|
```
|
|
|
|
---
|
|
|
|
## Usage:
|
|
|
|
```
|
|
Usage: ./cfc-cli [OPTION] [ARGUMENT] -f [FLAG]
|
|
All options:
|
|
-f, --flag [FLAG] Prints the chosen flag
|
|
-h, --height [Integer] Prints the flag with the chosen positive integer
|
|
-s, --string '[String]' Print the chosen flag with the given string (Flag width is not yet perfectly variable)
|
|
--list List all available flags
|
|
--help Prints out the help screen
|
|
```
|
|
|
|
---
|
|
|
|
## License
|
|
All of my code is distributed under the terms of the GPLv3 License.
|
|
|
|
See LICENSE for more details
|