Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 20, 2018
1 parent 26170e0 commit af0a983
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
8 changes: 8 additions & 0 deletions cli.js
Expand Up @@ -24,9 +24,13 @@ const cli = meow(`
Usage
$ conduct
Example
$ conduct --language=de
Options
--uppercase, -c Use uppercase characters (e.g. CODE-OF-CONDUCT.md)
--underscore, -u Use underscores instead of dashes (e.g. code_of_conduct.md)
--language, -l The language of the Code of Conduct [Default: en]
`, {
flags: {
uppercase: {
Expand All @@ -38,6 +42,10 @@ const cli = meow(`
type: 'boolean',
default: false,
alias: 'u'
},
language: {
type: 'string',
alias: 'l'
}
}
});
Expand Down
17 changes: 12 additions & 5 deletions readme.md
Expand Up @@ -30,12 +30,18 @@ $ npm install --global conduct
## Usage

```
Usage
$ conduct
$ conduct --help
Options
--uppercase, -c Use uppercase characters (e.g. CODE-OF-CONDUCT.md)
--underscore, -u Use underscores instead of dashes (e.g. code_of_conduct.md)
Usage
$ conduct
Example
$ conduct --language=de
Options
--uppercase, -c Use uppercase characters (e.g. CODE-OF-CONDUCT.md)
--underscore, -u Use underscores instead of dashes (e.g. code_of_conduct.md)
--language, -l The language of the Code of Conduct [Default: en]
```

You can also use this to update an existing Code of Conduct.
Expand All @@ -53,6 +59,7 @@ When generating a new Code of Conduct it will try to infer your email to use as

The language of the Code of Conduct can be set with `conduct --language=en`. The language is persisted and can be updated by passing the `--language` flag at any time. See the [vendor](/vendor) folder for all available languages. The default is '`en`' for English.


## Code of Conduct

[Contributor Code of Conduct](code-of-conduct.md). By participating in this project you agree to abide by its terms.
Expand Down

0 comments on commit af0a983

Please sign in to comment.