Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfu91 committed Dec 15, 2020
1 parent ceb2859 commit 582e9a8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# dir-size
A simple dotnet global tool to display the size of each sub-dir.
A simple dotnet global tool to calculate the size of each sub-dir.

## Install:

Expand All @@ -9,6 +9,18 @@ dotnet tool install --global dir-size

## Usage:

```bash
Usage: dir-size [options]

Options:
-v|--version Show version information
-?|-h|--help Show help information
-d|--dir The directory to work with, default is the current dir
-s|--sort Sort by size
```

### Example:

Current directory:
```bash
dir-size
Expand All @@ -19,5 +31,5 @@ dir-size -d path/to/dir
```
Sort by size:
```bash
dir-size -s
dir-size -s -d path/to/dir
```

0 comments on commit 582e9a8

Please sign in to comment.