Skip to content

Commit a1daf96

Browse files
signalwerkmislav
andauthored
Clarify magic type conversion of api params (cli#4434)
Co-authored-by: Mislav Marohnić <mislav@github.com>
1 parent 6cc7712 commit a1daf96

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/cmd/api/api.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ func NewCmdApi(f *cmdutil.Factory, runF func(*ApiOptions) error) *cobra.Command
7979
The default HTTP request method is "GET" normally and "POST" if any parameters
8080
were added. Override the method with %[1]s--method%[1]s.
8181
82-
Pass one or more %[1]s--raw-field%[1]s values in "key=value" format to add string
83-
parameters to the request payload. To add non-string parameters, see %[1]s--field%[1]s below.
84-
Note that adding request parameters will automatically switch the request method to POST.
85-
To send the parameters as a GET query string instead, use %[1]s--method%[1]s GET.
82+
Pass one or more %[1]s-f/--raw-field%[1]s values in "key=value" format to add static string
83+
parameters to the request payload. To add non-string or otherwise dynamic values, see
84+
%[1]s--field%[1]s below. Note that adding request parameters will automatically switch the
85+
request method to POST. To send the parameters as a GET query string instead, use
86+
%[1]s--method GET%[1]s.
8687
87-
The %[1]s--field%[1]s flag behaves like %[1]s--raw-field%[1]s with magic type conversion based
88-
on the format of the value:
88+
The %[1]s-F/--field%[1]s flag has magic type conversion based on the format of the value:
8989
9090
- literal values "true", "false", "null", and integer numbers get converted to
9191
appropriate JSON types;

0 commit comments

Comments
 (0)