We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 318ad9b commit 94ff45aCopy full SHA for 94ff45a
goreplace.go
@@ -249,8 +249,6 @@ func logError(err error) {
249
// Log error object as message
250
func logFatalErrorAndExit(err error, exitCode int) {
251
fmt.Fprintln(os.Stderr, fmt.Sprintf("Error: %s\n", err))
252
- fmt.Fprintln(os.Stderr, "")
253
- argparser.WriteHelp(os.Stdout)
254
os.Exit(exitCode)
255
}
256
tests/main.test
@@ -18,7 +18,9 @@ Testing ignoring missing arguments:
18
19
Testing missing search and replace argument:
20
21
- $ goreplace --mode=replace /dev/null &> /dev/null
+ $ goreplace --mode=replace /dev/null
22
+ Error: Missing either --search or --replace for this mode
23
+
24
[1]
25
26
Testing ignoring missing arguments in template mode:
0 commit comments