Skip to content

Commit 176b8bc

Browse files
committed
Add the README.md.
1 parent 67bf06d commit 176b8bc

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# READ ME
2+
## How to use
3+
```
4+
kt -t 100 -s 5 http://httpbin.org
5+
```
6+
The above command means use 100 threads to request the httpbin.org for 5 second.
7+
8+
## The options
9+
```
10+
Usage: kt.exe [OPTIONS] <URL>
11+
12+
Arguments:
13+
<URL> The request url,like http://www.google.com
14+
15+
Options:
16+
-t, --threads <Threads count> The thread count [default: 20]
17+
-s, --sleep-seconds <The running seconds> The thread count [default: 3]
18+
-h, --help Print help
19+
-V, --version Print version
20+
```

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct Cli {
2929
/// The thread count.
3030
#[arg(short = 't', long, value_name = "Threads count", default_value_t = 20)]
3131
threads: u16,
32-
/// The thread count.
32+
/// The running seconds for the testing tools.
3333
#[arg(
3434
short = 's',
3535
long,

0 commit comments

Comments
 (0)