commit 9d9bb66e702e7086f65722a791b77377d0ac2bd5 parent 56f096d5a2edad3f7ed52f23b25f48ad626387a7 Author: Sean Enck <sean@ttypty.com> Date: Fri, 29 Jul 2022 18:34:17 -0400 check default args Diffstat:
| M | internal/cli/args_test.go | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/internal/cli/args_test.go b/internal/cli/args_test.go @@ -42,3 +42,10 @@ func TestYes(t *testing.T) { t.Error("yes should be set") } } + +func TestDefaults(t *testing.T) { + args := ParseArgs("this/is/a/test") + if args.Clip || args.Once || args.Short || args.List || args.Multi || args.Yes { + t.Error("defaults should all be false") + } +}