I'm writing a console application which allows several Posix flags to be set.
This is what I'm using currently. Words in the flags are concatenated with a dash:
-p, --broker-port int Broker Port (default 1883)
-u, --broker-url string Broker URL (default "localhost")
-c, --client-id string MQTT Client Id
-r, --room string Room where sensor is located (default "myroom")
-f, --floor string Floor, where room is located (default "basement")
However I have also seen applications using CamelCase to concatenate pflags.
The official GNU coding standard does not specify how to concatenate words in posix flags.
What is the right way?
Thanks