Skip to content

Commit ccf9167

Browse files
committed
chore: update cli & documentation
Signed-off-by: Yagiz Degirmenci <yagizcanilbey1903@gmail.com>
1 parent b9be7b7 commit ccf9167

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
dstp
3+
.DS_Store

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ thought a robust tool like that come in handy!
3131

3232
### Packages
3333

34-
#### Arch Linux
35-
36-
* [ ] For Arch Linux, install the [``]() package.
37-
3834
#### Homebrew
3935

40-
* [ ] For Homebrew on macOS, install the [``]() formula.
36+
For Homebrew on macOS, install the [`ycd/tap/dstp`](https://github.com/ycd/homebrew-tap#readme) formula.
37+
38+
```zsh
39+
brew install ycd/tap/dstp
40+
```
4141

4242
### Downloads
4343

cmd/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ func main() {
1818
config.UsageAndExit(err)
1919
}
2020

21-
if opts.ShowHelp {
22-
config.HelpAndExit()
23-
}
24-
2521
ctx := context.Background()
2622

2723
dstp.RunAllTests(ctx, *opts)

config/config.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ func ConfigureOptions(fs *flag.FlagSet, args []string) (*Config, error) {
5454
}
5555
values := fs.Args()
5656

57+
if opts.ShowHelp {
58+
HelpAndExit()
59+
}
60+
5761
if !opts.ShowHelp && len(values) < 1 {
58-
return nil, fmt.Errorf("address is required")
62+
HelpAndExit()
5963
}
6064

6165
if len(values) > 1 {

0 commit comments

Comments
 (0)