Skip to content

Commit

Permalink
fix param names
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Aug 16, 2020
1 parent 044159a commit be98c6b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Application Options:
--debug debug mode [$DEBUG]
-v, --verbose verbose mode [$VERBOSE]
--log.json Switch log output to json format [$LOG_JSON]
--azure-environment= Azure environment name (default: AZUREPUBLICCLOUD) [$AZURE_ENVIRONMENT]
--azure-subscription= Azure subscription ID [$AZURE_SUBSCRIPTION_ID]
--azure-location= Azure locations (default: westeurope, northeurope) [$AZURE_LOCATION]
--azure-resourcegroup= Azure ResourceGroup [$AZURE_RESOURCEGROUP]
--azure-resource-tag= Azure Resource tags (default: owner) [$AZURE_RESOURCE_TAG]
--scrape-time= Default scrape time (time.duration) (default: 5m) [$SCRAPE_TIME]
--azure.environment= Azure environment name (default: AZUREPUBLICCLOUD) [$AZURE_ENVIRONMENT]
--azure.subscription= Azure subscription ID [$AZURE_SUBSCRIPTION_ID]
--azure.location= Azure locations (default: westeurope, northeurope) [$AZURE_LOCATION]
--azure.resourcegroup= Azure ResourceGroup [$AZURE_RESOURCEGROUP]
--azure.resource-tag= Azure Resource tags (default: owner) [$AZURE_RESOURCE_TAG]
--scrape.time= Default scrape time (time.duration) (default: 5m) [$SCRAPE_TIME]
--bind= Server address (default: :8080) [$SERVER_BIND]
Help Options:
Expand Down
12 changes: 6 additions & 6 deletions config/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ type (

// azure
Azure struct {
Environment *string `long:"azure-environment" env:"AZURE_ENVIRONMENT" description:"Azure environment name" default:"AZUREPUBLICCLOUD"`
Subscription []string `long:"azure-subscription" env:"AZURE_SUBSCRIPTION_ID" env-delim:" " description:"Azure subscription ID"`
Location []string `long:"azure-location" env:"AZURE_LOCATION" env-delim:" " description:"Azure locations" default:"westeurope" default:"northeurope"`
ResourceGroup string `long:"azure-resourcegroup" env:"AZURE_RESOURCEGROUP" description:"Azure ResourceGroup"`
ResourceTags []string `long:"azure-resource-tag" env:"AZURE_RESOURCE_TAG" env-delim:" " description:"Azure Resource tags" default:"owner"`
Environment *string `long:"azure.environment" env:"AZURE_ENVIRONMENT" description:"Azure environment name" default:"AZUREPUBLICCLOUD"`
Subscription []string `long:"azure.subscription" env:"AZURE_SUBSCRIPTION_ID" env-delim:" " description:"Azure subscription ID"`
Location []string `long:"azure.location" env:"AZURE_LOCATION" env-delim:" " description:"Azure locations" default:"westeurope" default:"northeurope"`
ResourceGroup string `long:"azure.resourcegroup" env:"AZURE_RESOURCEGROUP" description:"Azure ResourceGroup"`
ResourceTags []string `long:"azure.resource-tag" env:"AZURE_RESOURCE_TAG" env-delim:" " description:"Azure Resource tags" default:"owner"`
}

// scrape times
Scrape struct {
Time time.Duration `long:"scrape-time" env:"SCRAPE_TIME" description:"Default scrape time (time.duration)" default:"5m"`
Time time.Duration `long:"scrape.time" env:"SCRAPE_TIME" description:"Default scrape time (time.duration)" default:"5m"`
}

// general options
Expand Down

0 comments on commit be98c6b

Please sign in to comment.