From e0ab4c7fd6093705aca0e2397ed7c387acd9816a Mon Sep 17 00:00:00 2001 From: Radu Topala Date: Wed, 26 May 2021 19:57:11 +0300 Subject: [PATCH] fixed arg casting --- options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/options.go b/options.go index f9eabc0..1d67f22 100644 --- a/options.go +++ b/options.go @@ -73,17 +73,17 @@ func (arg Argument) Explain() string { // String casts a value to a string and panics on failure. func (arg Argument) String() string { - return *arg.Value.(*string) + return arg.Value.(string) } // Bool casts a value to a bool and panics on failure. func (arg Argument) Bool() bool { - return *arg.Value.(*bool) + return arg.Value.(bool) } // Int casts a value to an int and panics on failure. func (arg Argument) Int() int { - return *arg.Value.(*int) + return arg.Value.(int) } type sortArguments []*Argument