Skip to content

Commit

Permalink
added usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pandalanax committed Feb 25, 2024
1 parent d1b2e60 commit 20308b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ Fuzzy find your way to the configuration option you're searching for.


## Usage
search all options from `hdfs-site.xml`:
```bash
hdfshelper -m hdfs
```
TBA

copy the output to clipboard (macOS):
```bash
hdfshelper -m core | pbcopy
```

You can select more than one option to print with `<TAB>`.

## Supports
Currently the options below are supported.

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func main() {
- hdfs [hdfs-site.xml]`
)
flag.StringVar(&mode, "mode", defaultMode, usageMode)
flag.StringVar(&mode, "m", defaultMode, usageMode)
flag.StringVar(&mode, "m", defaultMode, usageMode+"(shorthand)")

flag.Parse()

Expand Down

0 comments on commit 20308b4

Please sign in to comment.