Commit 1f65bed
committed
Fix Shipwright CLI output message when incorrect flag is passed
Fixes #346
# Changes:
- Discard any messages or error written to stdio or stderr by goflag library. Return the error only.
- In case of error while parsing the goflags, print the error, then print the CLI help and then exit with 1.
Signed-off-by: Sayan Biswas <sayan-biswas@live.com>1 parent f6e3846 commit 1f65bed
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | | - | |
45 | | - | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
58 | | - | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
| |||
0 commit comments