Jakob Unterwurzacher
|
e29a81efc3
|
main: make prefixOArgs errors testable
By returning an error instead of calling os.Exit,
error cases can be tested easily. Error cases
were not tested until now.
|
2018-06-05 21:02:35 +02:00 |
|
Jakob Unterwurzacher
|
e135a72bda
|
main: "--" should also block "-o" parsing
Includes test cases.
|
2017-04-29 15:11:17 +02:00 |
|
Jakob Unterwurzacher
|
f41d2e0676
|
Run cli_args_test.go through "gofmt -s"
|
2016-10-24 19:36:44 +02:00 |
|
Jakob Unterwurzacher
|
7b2049c769
|
main: accept "-o" at the front AND at the end
Moving "-o" to the end broke a third-party app, SiriKali.
Breaking your users is bad, so let's accept "-o" anywhere.
|
2016-10-10 19:44:34 +02:00 |
|
Jakob Unterwurzacher
|
b70d2ffd94
|
main: add tests for the "-o" parsing
|
2016-10-09 20:54:40 +02:00 |
|