It seems that you are using library github.com/urfave/cli, if so, you can get the value by name or aliases.
github.com/urfave/cli
c.String("privatekey")
or
c.String("k")
2.1m questions
2.1m answers
60 comments
57.0k users