Skip to content

Commit

Permalink
Merge branch 'fix-upsert-help'
Browse files Browse the repository at this point in the history
  • Loading branch information
cwarden committed Jul 3, 2023
2 parents 5c47f9c + 0c57c8e commit 1df2cc9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions command/bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ var bulkUpdateCmd = &cobra.Command{
}

var bulkUpsertCmd = &cobra.Command{
Use: "upsert <External_Id_Field__c> <object> <file>",
Use: "upsert -e <External_Id_Field__c> <object> <file>",
Short: "Upsert records from csv file using Bulk API",
Run: runBulkCmd,
Args: cobra.ExactArgs(3),
Args: cobra.ExactArgs(2),
}

var bulkDeleteCmd = &cobra.Command{
Expand Down Expand Up @@ -201,7 +201,7 @@ var bulkCmd = &cobra.Command{
force bulk insert Account [csv file]
force bulk update Account [csv file]
force bulk delete Account [csv file]
force bulk upsert ExternalIdField__c Account [csv file]
force bulk upsert -e ExternalIdField__c Account [csv file]
force bulk job [job id]
force bulk batches [job id]
force Bulk batch [job id] [batch id]
Expand All @@ -215,7 +215,6 @@ func runBulkCmd(cmd *cobra.Command, args []string) {
externalId := ""
if cmd.Name() == "upsert" {
externalId, _ = cmd.Flags().GetString("externalid")
args = args[1:]
}

objectType := args[0]
Expand Down

0 comments on commit 1df2cc9

Please sign in to comment.