Skip to content

Commit 7f77fd6

Browse files
author
Vasanth Developer
committed
Updated README.md with wait for internet option
1 parent 4999e38 commit 7f77fd6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ Usage:
3333
samaya [flags]
3434
3535
Flags:
36-
-D, --delay int Delay the number of seconds before requesting the time
37-
-d, --dry Fetch the time, but don't update it
38-
-h, --help help for samaya
39-
-t, --timezone string Set time of that timezone (default "auto")
40-
-v, --verbose Show extended output
41-
-V, --version Print the version number and exit
36+
-D, --delay int Delay the number of seconds before requesting the time
37+
-d, --dry Fetch the time, but don't update it
38+
-h, --help help for samaya
39+
-t, --timezone string Set time of that timezone (default "auto")
40+
-v, --verbose Show extended output
41+
-V, --version Print the version number and exit
42+
-w, --wait for internet Wait until an active internet connection is established
4243
```
4344

4445
## Building

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func main() {
2727
rootCmd.Flags().BoolVarP(&arguments.DryRun, "dry", "d", false, "Fetch the time, but don't update it")
2828
rootCmd.Flags().BoolVarP(&arguments.Version, "version", "V", false, "Print the version number and exit")
2929
rootCmd.Flags().IntVarP(&arguments.Delay, "delay", "D", 0, "Delay the number of seconds before requesting the time")
30-
rootCmd.Flags().BoolVarP(&arguments.WaitForInternet, "wait for internet", "w", false, "Wait until an active internet connection is established.")
30+
rootCmd.Flags().BoolVarP(&arguments.WaitForInternet, "wait for internet", "w", false, "Wait until an active internet connection is established")
3131

3232
rootCmd.Flags().StringVarP(&arguments.Timezone, "timezone", "t", "auto", "Set time of that timezone")
3333
err := rootCmd.Execute()

0 commit comments

Comments
 (0)