Browse code

explain since format and give examples

Signed-off-by: tronicum <tronicum@user.github.com>

ttronicum authored on 2016/12/25 13:13:53
Showing 2 changed files
... ...
@@ -44,7 +44,7 @@ func NewLogsCommand(dockerCli *command.DockerCli) *cobra.Command {
44 44
 
45 45
 	flags := cmd.Flags()
46 46
 	flags.BoolVarP(&opts.follow, "follow", "f", false, "Follow log output")
47
-	flags.StringVar(&opts.since, "since", "", "Show logs since timestamp")
47
+	flags.StringVar(&opts.since, "since", "", "Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes)")
48 48
 	flags.BoolVarP(&opts.timestamps, "timestamps", "t", false, "Show timestamps")
49 49
 	flags.BoolVar(&opts.details, "details", false, "Show extra details provided to logs")
50 50
 	flags.StringVar(&opts.tail, "tail", "all", "Number of lines to show from the end of the logs")
... ...
@@ -24,8 +24,8 @@ Options:
24 24
       --details        Show extra details provided to logs
25 25
   -f, --follow         Follow log output
26 26
       --help           Print usage
27
-      --since string   Show logs since timestamp
28
-      --tail string    Number of lines to show from the end of the logs (default "all")
27
+      --since string   Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes)
28
+      --tail string    Number of lines to show from the end of the logs (default "all") 
29 29
   -t, --timestamps     Show timestamps
30 30
 ```
31 31