This commit is contained in:
Robert Kaussow 2023-07-21 00:28:46 +02:00
parent 510fca6348
commit 0998662a8c
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,6 @@ COMMANDS:
GLOBAL OPTIONS:
--url value source url to parse [$URL_PARSER_URL]
--stdin read url to parse from stdin (default: false) [$URL_PARSER_STDIN]
--help, -h show help
--version, -v print the version
```
@ -78,6 +77,10 @@ some-key=somevalue
$ url-parser --url https://somedomain.com/?some-key=somevalue query --query-field=some-key
somevalue
# It is also possible to read the URL from stdin
$ echo "https://somedomain.com" | url-parser host
somedomain.com
```
## Contributors

View File

@ -10,7 +10,6 @@ var (
type Config struct {
URL string
Stdin bool
QueryField string
PathIndex int
}