소스 검색

Add missing --bottomup option

This option was mentioned in --help and the man page but not implemented
in the arg parsing
morganamilo 7 년 전
부모
커밋
04bd59450c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      cmd.go

+ 2 - 0
cmd.go

@@ -190,6 +190,8 @@ func parser() (op string, options []string, packages []string, changedConfig boo
 				config.TimeUpdate = false
 			case "--topdown":
 				config.SortMode = TopDown
+			case "--bottomup":
+				config.SortMode = BottomUp
 			case "--complete":
 				config.Shell = "sh"
 				_ = complete()