File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ var bulkUpdateCmd = &cobra.Command{
110110}
111111
112112var bulkUpsertCmd = & cobra.Command {
113- Use : "upsert <External_Id_Field__c> <object> <file>" ,
113+ Use : "upsert -e <External_Id_Field__c> <object> <file>" ,
114114 Short : "Upsert records from csv file using Bulk API" ,
115115 Run : runBulkCmd ,
116- Args : cobra .ExactArgs (3 ),
116+ Args : cobra .ExactArgs (2 ),
117117}
118118
119119var bulkDeleteCmd = & cobra.Command {
@@ -201,7 +201,7 @@ var bulkCmd = &cobra.Command{
201201 force bulk insert Account [csv file]
202202 force bulk update Account [csv file]
203203 force bulk delete Account [csv file]
204- force bulk upsert ExternalIdField__c Account [csv file]
204+ force bulk upsert -e ExternalIdField__c Account [csv file]
205205 force bulk job [job id]
206206 force bulk batches [job id]
207207 force Bulk batch [job id] [batch id]
@@ -215,7 +215,6 @@ func runBulkCmd(cmd *cobra.Command, args []string) {
215215 externalId := ""
216216 if cmd .Name () == "upsert" {
217217 externalId , _ = cmd .Flags ().GetString ("externalid" )
218- args = args [1 :]
219218 }
220219
221220 objectType := args [0 ]
You can’t perform that action at this time.
0 commit comments