Skip to content

Commit 276c42e

Browse files
committed
refactor: adjust style
1 parent 602ded3 commit 276c42e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Usage:
1818
diskusage [flags]
1919
2020
Flags:
21-
-d, --depth int Shows the depth of the tree directory structure (default 1)
22-
--dir string Dir path (default "./")
23-
-f, --filter string Make regular expression filter (default ".")
21+
-d, --depth int shows the depth of the tree directory structure (default 1)
22+
--dir string dir path (default "./")
23+
-f, --filter string regular expression filter (default ".+")
2424
-h, --help help for diskusage
25-
-t, --type strings Only count certain types of files (default all)
26-
-u, --unit string Displayed units. optional: B(Bytes), K(KB), M(MB), G(GB), T(TB) (default "M")
27-
```
25+
-t, --type strings only count certain types of files (default all)
26+
-u, --unit string displayed units. optional: B(Bytes), K(KB), M(MB), G(GB), T(TB) (default "M")
27+
```
2828

2929
![](image/cmd.png)

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ func init() {
4343
rootCmd.Flags().String("dir", "./", "dir path")
4444
rootCmd.Flags().IntP("depth", "d", 1, "shows the depth of the tree directory structure")
4545
rootCmd.Flags().StringSliceP("type", "t", []string{}, "only count certain types of files (default all)")
46-
rootCmd.Flags().StringP("filter", "f", ".*", "regular expression filter")
46+
rootCmd.Flags().StringP("filter", "f", ".+", "regular expression filter")
4747
}

image/cmd.png

825 Bytes
Loading

0 commit comments

Comments
 (0)