Updated documentation

This commit is contained in:
Erin Power 2019-07-04 22:21:27 +02:00
parent c0af17a815
commit cfbdcce2c7
No known key found for this signature in database
GPG Key ID: C5B2B187874CE1AC
4 changed files with 21 additions and 18 deletions

View File

@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at theaaronepower+coc@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at xampprocky+coc@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

View File

@ -1,5 +1,5 @@
[package]
authors = ["XAMPPRocky <xampprocky@gmail.com>"]
authors = ["Erin Power <xampprocky@gmail.com>"]
build = "build.rs"
categories = ["command-line-utilities", "development-tools", "visualization"]
description = "A utility that allows you to count code, quickly."

View File

@ -12,7 +12,7 @@ Tokei is a program that displays statistics about your code. Tokei will show num
### Translations
- [中文](https://github.com/chinanf-boy/tokei-zh#支持的语言)
<!--
<!--
## Example Output
This is tokei running on its own directory
@ -254,29 +254,32 @@ $ tokei ./foo --input ./stats.json
## Options
```
tokei 7.0.1
Aaron P. <theaaronepower@gmail.com> + Contributors
A utility that allows you to count code, quickly.
USAGE:
tokei [FLAGS] [OPTIONS] [--] [input]...
FLAGS:
-f, --files Will print out statistics on individual files.
-h, --help Prints help information
-l, --languages Prints out supported languages and their extensions.
-V, --version Prints version information
-v, --verbose Set log output level:
1: to show unknown file extensions,
2: reserved for future debugging,
3: enable file level trace. Not recommended on multiple files
-f, --files Will print out statistics on individual files.
-h, --help Prints help information
--hidden Count hidden files.
-l, --languages Prints out supported languages and their extensions.
--no-ignore Don't respect ignore files.
--no-ignore-parent Don't respect ignore files in parent directories.
--no-ignore-vcs Don't respect VCS ignore files.
-V, --version Prints version information
-v, --verbose Set log output level:
1: to show unknown file extensions,
2: reserved for future debugging,
3: enable file level trace. Not recommended on multiple files
OPTIONS:
-c, --columns <columns> Sets a strict column width of the output, only available for terminal output.
-e, --exclude <exclude>... Ignore all files & directories containing the word.
-i, --input <file_input> Gives statistics from a previous tokei run. Can be given a file path, or "stdin" to
read from stdin.
-o, --output <output> Outputs Tokei in a specific format. [values: cbor, json, toml, yaml]
-s, --sort <sort> Sort languages based on column [values: files, lines, blanks, code, comments]
-o, --output <output> Outputs Tokei in a specific format. Compile with additional features for more format
support. [possible values: cbor, json, yaml]
-s, --sort <sort> Sort languages based on column [possible values: files, lines, blanks, code, comments]
-t, --type <types> Filters output by language type, seperated by a comma. i.e. -t=Rust,Markdown
ARGS:
<input>... The input file(s)/directory(ies) to be counted.

View File

@ -25,7 +25,7 @@ impl<'a> Cli<'a> {
pub fn from_args() -> Self {
let matches = clap_app!(tokei =>
(version: &*crate_version())
(author: "Aaron P. <theaaronepower@gmail.com> + Contributors")
(author: "Erin P. <xampprocky@gmail.com> + Contributors")
(about: crate_description!())
(@arg columns: -c --columns
+takes_value