Skip to content

Commit

Permalink
Change args placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Sheiko committed Sep 21, 2023
1 parent b44eae9 commit 9317bb5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,20 @@ go install github.com/n0madic/cloudping@latest
## Usage

```
Usage: cloudping [--all] [--alt-ping] [--count COUNT] [--region REGION] [--location LOCATION] [--provider PROVIDER] [--timeout TIMEOUT]
Usage: cloudping [--all] [--alt-ping] [--count NUM] [--hide-errors] [--region NAME] [--location NAME] [--provider NAME] [--timeout DURATION]
Options:
--all, -a Scan all providers
--alt-ping Use alternative ICMP ping method
--count COUNT, -c COUNT
Number of pings to send [default: 4]
--count NUM, -c NUM Number of pings to send [default: 4]
--hide-errors, -e Hide errors from results
--region REGION, -r REGION
--region NAME, -r NAME
Filter by regions, can be specified multiple times
--location LOCATION, -l LOCATION
--location NAME, -l NAME
Filter by location, can be specified multiple times
--provider PROVIDER, -p PROVIDER
--provider NAME, -p NAME
Choose provider for ping [default: aws]
--timeout TIMEOUT, -t TIMEOUT
--timeout DURATION, -t DURATION
Timeout before ping ends [default: 5s]
--help, -h display this help and exit
```
Expand Down
10 changes: 5 additions & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
type config struct {
All bool `arg:"--all,-a" help:"Scan all providers"`
AltPing bool `arg:"--alt-ping" help:"Use alternative ICMP ping method"`
Count int `arg:"--count,-c" default:"4" help:"Number of pings to send"`
Count int `arg:"--count,-c" placeholder:"NUM" default:"4" help:"Number of pings to send"`
HideErrors bool `arg:"--hide-errors,-e" help:"Hide errors from results"`
FilterRegion []string `arg:"--region,-r,separate" help:"Filter by regions, can be specified multiple times"`
FilterLocation []string `arg:"--location,-l,separate" help:"Filter by location, can be specified multiple times"`
Provider string `arg:"--provider,-p" default:"aws" help:"Choose provider for ping"`
Timeout time.Duration `arg:"--timeout,-t" default:"5s" help:"Timeout before ping ends"`
FilterRegion []string `arg:"--region,-r,separate" placeholder:"NAME" help:"Filter by regions, can be specified multiple times"`
FilterLocation []string `arg:"--location,-l,separate" placeholder:"NAME" help:"Filter by location, can be specified multiple times"`
Provider string `arg:"--provider,-p" placeholder:"NAME" default:"aws" help:"Choose provider for ping"`
Timeout time.Duration `arg:"--timeout,-t" placeholder:"DURATION" default:"5s" help:"Timeout before ping ends"`
}

func (c *config) Description() string {
Expand Down

0 comments on commit 9317bb5

Please sign in to comment.