@@ -42,6 +42,8 @@ Options:
4242
4343 -total-only=false Only display total pending time
4444
45+ -long-duration If total-only, display total pending time in long duration format
46+
4547 -tags="" Project tags to report status for, i.e --tags tag1,tag2
4648
4749 -all=false Show status for all projects
@@ -51,12 +53,13 @@ Options:
5153
5254// Run executes status command with args
5355func (c StatusCmd ) Run (args []string ) int {
54- var color , terminalOff , totalOnly , all , profile bool
56+ var color , terminalOff , totalOnly , all , profile , longDuration bool
5557 var tags string
5658 cmdFlags := flag .NewFlagSet ("status" , flag .ContinueOnError )
5759 cmdFlags .BoolVar (& color , "color" , false , "Always output color even if no terminal is detected. Use this with pagers i.e 'less -R' or 'more -R'" )
5860 cmdFlags .BoolVar (& terminalOff , "terminal-off" , false , "Exclude time spent in terminal (Terminal plugin is required)" )
5961 cmdFlags .BoolVar (& totalOnly , "total-only" , false , "Only display total time" )
62+ cmdFlags .BoolVar (& longDuration , "long-duration" , false , "Display total time in long duration format" )
6063 cmdFlags .StringVar (& tags , "tags" , "" , "Project tags to show status on" )
6164 cmdFlags .BoolVar (& all , "all" , false , "Show status for all projects" )
6265 cmdFlags .BoolVar (& profile , "profile" , false , "Enable profiling" )
@@ -96,9 +99,10 @@ func (c StatusCmd) Run(args []string) int {
9699 }
97100
98101 options := report.OutputOptions {
99- TotalOnly : totalOnly ,
100- TerminalOff : terminalOff ,
101- Color : color }
102+ TotalOnly : totalOnly ,
103+ LongDuration : longDuration ,
104+ TerminalOff : terminalOff ,
105+ Color : color }
102106
103107 for _ , projPath := range projects {
104108 if commitNote , err = metric .Process (true , projPath ); err != nil {
0 commit comments