mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-06-28 21:20:59 +02:00
cleanup
This commit is contained in:
parent
510fca6348
commit
0998662a8c
|
@ -53,7 +53,6 @@ COMMANDS:
|
||||||
|
|
||||||
GLOBAL OPTIONS:
|
GLOBAL OPTIONS:
|
||||||
--url value source url to parse [$URL_PARSER_URL]
|
--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
|
--help, -h show help
|
||||||
--version, -v print the version
|
--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
|
$ url-parser --url https://somedomain.com/?some-key=somevalue query --query-field=some-key
|
||||||
somevalue
|
somevalue
|
||||||
|
|
||||||
|
# It is also possible to read the URL from stdin
|
||||||
|
$ echo "https://somedomain.com" | url-parser host
|
||||||
|
somedomain.com
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
|
@ -10,7 +10,6 @@ var (
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
URL string
|
URL string
|
||||||
Stdin bool
|
|
||||||
QueryField string
|
QueryField string
|
||||||
PathIndex int
|
PathIndex int
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user