Skip to content

Commit

Permalink
Merge pull request #5 from lsk569937453/dev
Browse files Browse the repository at this point in the history
Add the README.md.
  • Loading branch information
lsk569937453 authored Mar 18, 2024
2 parents 67bf06d + 176b8bc commit dd63cb1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# READ ME
## How to use
```
kt -t 100 -s 5 http://httpbin.org
```
The above command means use 100 threads to request the httpbin.org for 5 second.

## The options
```
Usage: kt.exe [OPTIONS] <URL>
Arguments:
<URL> The request url,like http://www.google.com
Options:
-t, --threads <Threads count> The thread count [default: 20]
-s, --sleep-seconds <The running seconds> The thread count [default: 3]
-h, --help Print help
-V, --version Print version
```
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct Cli {
/// The thread count.
#[arg(short = 't', long, value_name = "Threads count", default_value_t = 20)]
threads: u16,
/// The thread count.
/// The running seconds for the testing tools.
#[arg(
short = 's',
long,
Expand Down

0 comments on commit dd63cb1

Please sign in to comment.