Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Aug 23, 2020
1 parent 06b035f commit c5fb7be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ curl -sL https://github.com/Uptimedog/Agent/releases/download/x.x.x/agent_x.x.
Start the agent and it will auto register itself using your API key

```zsh
$ ./agent run --api_server uptimedog.io --api_key xxxxxxxx > agent.log
$ ./agent run --api_server https://uptimedog.io --api_key xxxxxxxx > agent.log
```


Expand Down
7 changes: 7 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ func init() {
"",
"Your Uptimedog API Key",
)
rootCmd.PersistentFlags().StringVarP(
&APIKey,
"api_server",
"a",
"https://uptimedog.io",
"Uptimedog remote server",
)
}

// Execute runs cmd tool
Expand Down

0 comments on commit c5fb7be

Please sign in to comment.