--- a/cmd/status.go Sat Oct 28 19:48:20 2017 +0000
+++ b/cmd/status.go Sun Mar 18 23:13:55 2018 +0100
@@ -12,10 +12,13 @@
"github.com/pkg/errors"
"github.com/spf13/cobra"
+ flag "github.com/spf13/pflag"
"github.com/McKael/madon"
)
+var statusPostFlags *flag.FlagSet
+
var statusOpts struct {
statusID int64
unset bool
@@ -75,7 +78,7 @@
statusPostSubcommand.Flags().Lookup("visibility").Annotations = annotation
// This one will be used to check if the options were explicitly set or not
- updateFlags = statusPostSubcommand.Flags()
+ statusPostFlags = statusPostSubcommand.Flags()
}
// statusCmd represents the status command