Skip to content

Commit 99fb9a4

Browse files
authored
Merge pull request #8 from Splode/docs/readme-enhancements
docs: enhance README, usage text
2 parents 050313e + f9bea9c commit 99fb9a4

2 files changed

Lines changed: 57 additions & 4 deletions

File tree

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,27 @@ Generate random, human-friendly names, like `determined-pancake` or `sinister di
66

77
fname isn't meant to provide a secure, globally unique identifier, but with over 500 billion possible combinations, it's good enough for most non-critical use cases.
88

9+
## Table of Contents
10+
11+
- [fname](#fname)
12+
- [Table of Contents](#table-of-contents)
13+
- [Installation](#installation)
14+
- [Download](#download)
15+
- [Go](#go)
16+
- [Source](#source)
17+
- [Usage](#usage)
18+
- [CLI](#cli)
19+
- [Library](#library)
20+
- [Install](#install)
21+
- [Basic Usage](#basic-usage)
22+
- [Customization](#customization)
23+
- [Disclaimers](#disclaimers)
24+
- [Contributing](#contributing)
25+
- [Reporting Issues](#reporting-issues)
26+
- [Suggesting Improvements](#suggesting-improvements)
27+
- [License](#license)
28+
- [Related Projects](#related-projects)
29+
930
## Installation
1031

1132
### Download
@@ -65,6 +86,16 @@ spellbinding-project-presented-fully
6586

6687
Note: the minimum phrase size is 2 (default), and the maximum is 4.
6788

89+
Generate a name phrase with a specific casing:
90+
91+
```sh
92+
$ fname --casing upper
93+
TRAGIC-MOUNTAIN
94+
95+
$ fname --casing title
96+
Whimsical-Party
97+
```
98+
6899
Specify the seed for generating names:
69100

70101
```sh
@@ -129,6 +160,28 @@ fname is not cryptographically secure, and should not be used for anything that
129160

130161
fname's dictionary is curated to exclude words that are offensive, or could be considered offensive, either alone or when generated in a phrase. Nevertheless, all cases are not and cannot be covered. If you find a word that you think should be removed, please [open an issue](https://github.com/Splode/fname/issues).
131162

163+
## Contributing
164+
165+
We welcome contributions to the fname project! Whether it's reporting bugs, suggesting improvements, or submitting new features, your input is valuable to us. Here's how you can get started:
166+
167+
1. Fork the repository on GitHub.
168+
2. Clone your fork and create a new branch for your changes.
169+
3. Make your changes and commit them to your branch.
170+
4. Create a pull request, and provide a clear description of your changes.
171+
172+
Before submitting a pull request, please make sure your changes are well-tested and adhere to the code style used throughout the project. If you are unsure how to proceed or need help, feel free to open an issue or ask a question in the [discussions](https://github.com/Splode/fname/discussions) section.
173+
174+
### Reporting Issues
175+
176+
If you encounter a bug or any issue, please [open an issue](https://github.com/Splode/fname/issues) on GitHub. When reporting a bug, try to include as much information as possible, such as the steps to reproduce the issue, the expected behavior, and the actual behavior. This will help us diagnose and fix the issue more efficiently.
177+
178+
### Suggesting Improvements
179+
180+
We are always looking for ways to improve fname. If you have a suggestion for a new feature or an enhancement to an existing feature, please [open an issue](https://github.com/Splode/fname/issues) or start a discussion in the [discussions](https://github.com/Splode/fname/discussions) section. Be sure to explain your idea in detail, and if possible, provide examples or use cases.
181+
182+
Thank you for your interest in contributing to fname!
183+
184+
132185

133186
## License
134187

cmd/fname/fname.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ func main() {
5353
// TODO: add option to use custom dictionary
5454
)
5555

56-
pflag.StringVarP(&casing, "casing", "c", casing, "case of generated names: lower, upper, or title")
57-
pflag.StringVarP(&delimiter, "delimiter", "d", delimiter, "delimiter to use between words")
58-
pflag.IntVarP(&quantity, "quantity", "q", quantity, "number of name phrases to generate")
59-
pflag.UintVarP(&size, "size", "z", size, "number of words per phrase (minimum 2, maximum 4)")
56+
pflag.StringVarP(&casing, "casing", "c", casing, "set the casing of the generated name <title|upper|lower>")
57+
pflag.StringVarP(&delimiter, "delimiter", "d", delimiter, "set the delimiter used to join words")
58+
pflag.IntVarP(&quantity, "quantity", "q", quantity, "set the number of names to generate")
59+
pflag.UintVarP(&size, "size", "z", size, "set the number of words in the generated name (minimum 2, maximum 4)")
6060
pflag.Int64VarP(&seed, "seed", "s", seed, "random generator seed")
6161
pflag.BoolVarP(&help, "help", "h", help, "show fname usage")
6262
pflag.BoolVarP(&ver, "version", "v", ver, "show fname version")

0 commit comments

Comments
 (0)