@@ -44,8 +44,16 @@ func AddCommonArgs(cmd *cobra.Command) {
44
44
}
45
45
46
46
func AddPlaceholderArgs (cmd * cobra.Command ) {
47
+ cmd .Flags ().BoolVarP (& placeholderBool , "append" , "a" , false , "Append to target file when uploading" )
48
+ cmd .Flags ().BoolVarP (& placeholderBool , "compressed" , "C" , false , "Request compressed response" )
47
49
cmd .Flags ().BoolVarP (& placeholderBool , "fail" , "f" , false , "Fail silently (no output at all) on HTTP errors" )
50
+ // TODO: Add support for form
51
+ cmd .Flags ().BoolVarP (& placeholderBool , "form" , "F" , false , "Specify HTTP multipart POST data" )
52
+ cmd .Flags ().BoolVarP (& placeholderBool , "head" , "I" , false , "Show document info only" )
53
+ cmd .Flags ().BoolVarP (& placeholderBool , "get" , "G" , false , "Send the -d data with a HTTP GET request" )
48
54
cmd .Flags ().BoolVarP (& placeholderBool , "include" , "i" , false , "Include protocol headers in the output" )
55
+ cmd .Flags ().StringVarP (& placeholderString , "json" , "j" , "" , "JSON data to send in the body of the request" )
56
+ cmd .Flags ().BoolVarP (& placeholderBool , "location" , "L" , false , "Follow redirects" )
49
57
cmd .Flags ().BoolVarP (& placeholderBool , "remote-name" , "O" , false , "Write output to a file named as the remote file" )
50
58
cmd .Flags ().BoolVarP (& placeholderBool , "silent" , "s" , false , "Run in silent mode" )
51
59
cmd .Flags ().StringVarP (& placeholderString , "upload-file" , "T" , "" , "Transfer file to target API" )
0 commit comments