Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoshiki41 authored May 5, 2024
1 parent dedd5d6 commit 5510fb4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,26 @@ rdeadcode -json deadcode.json

### Independent features of `rdeadcode`

passed the argument `-file` and `-function` to remove the dead code from the file.
Pass the argument `-file` and `-function` to remove the dead code from the file.

```shell
rdeadcode -file path/to/your/file.go -function deadFunction
```

#### -help
```shell
$ rdeadcode -help
Usage of rdeadcode:
-json string
JSON file generated by deadcode
-file string
File to remove function from
-function string
Function to remove
-ignore string
Ignore files matching glob pattern
```

## Known issues

> [!WARNING]
Expand Down

0 comments on commit 5510fb4

Please sign in to comment.