@@ -183,14 +183,6 @@ Output formats:
183183* user-friendly tables with headers, etc
184184* machine-parsable delimited
185185
186- Notes:
187-
188- * All long options names shall begin with two dashes ('--') and use a single dash
189- ('-') internally between words (:code: `--like-this `). Underscores ('_') shall not
190- be used in option names.
191- * Authentication options conform to the common CLI authentication guidelines in
192- :doc: `authentication `.
193-
194186Global Options
195187~~~~~~~~~~~~~~
196188
@@ -202,6 +194,16 @@ the command-line option takes priority. The environment variable names are deri
202194from the option name by dropping the leading dashes ('--'), converting each embedded
203195dash ('-') to an underscore ('_'), and converting to upper case.
204196
197+ * Global options shall always have a long option name, certain common options may
198+ also have short names. Short names should be reserved for global options to limit
199+ the potential for duplication and multiple meanings between commands given the
200+ limited set of available short names.
201+ * All long options names shall begin with two dashes ('--') and use a single dash
202+ ('-') internally between words (:code: `--like-this `). Underscores ('_') shall not
203+ be used in option names.
204+ * Authentication options conform to the common CLI authentication guidelines in
205+ :doc: `authentication `.
206+
205207For example, :code: `--os-username ` can be set from the environment via
206208:code: `OS_USERNAME `.
207209
@@ -245,6 +247,10 @@ Each command may have its own set of options distinct from the global options.
245247They follow the same style as the global options and always appear between
246248the command and any positional arguments the command requires.
247249
250+ Command options shall only have long names. The small range of available
251+ short names makes it hard for a single short option name to have a consistent
252+ meaning across multiple commands.
253+
248254Option Forms
249255++++++++++++
250256
0 commit comments