version, help and examples without input

This commit is contained in:
edoardottt
2021-06-19 17:32:48 +02:00
parent 639377e152
commit 71b4ca0760
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -89,7 +89,7 @@ You need [Go](https://golang.org/).
Get Started 🎉
----------
`cariddi help` prints the help in the command line.
`cariddi -h` prints the help in the command line.
```
Usage of cariddi:
@@ -126,8 +126,9 @@ Usage of cariddi:
Examples 💡
----------
- `cat urls | cariddi -version` (Print the version)
- `cat urls | cariddi -h` (Print the help)
- `cariddi -version` (Print the version)
- `cariddi -h` (Print the help)
- `cariddi -examples` (Print the examples)
- `cat urls | cariddi -s` (Hunt for secrets)
- `cat urls | cariddi -d 2` (2 seconds between a page crawled and another)
- `cat urls | cariddi -c 200` (Set the concurrency level to 200)
+2 -1
View File
@@ -35,7 +35,6 @@ import (
//main
func main() {
targets := input.ScanTargets()
flags := input.ScanFlag()
if flags.Version {
@@ -57,6 +56,8 @@ func main() {
output.Beautify()
}
targets := input.ScanTargets()
// ----------- TODO: check ALL input -------------------
input.CheckFlags(flags)