elliotchance / gedcom

👪 A Go library and CLI tools for encoding, decoding, traversing, merging, comparing, querying and publishing GEDCOM files.
MIT License
94 stars 21 forks source link

ERROR: no such variable d #314

Closed dschmidtadv closed 3 years ago

dschmidtadv commented 3 years ago

I am getting above mentioned error when attempting to merge two files: ged d -gedcom /Users/dschmidt/Downloads/geneanet.ged -format gedcom 'IndividualBySurroundingSimilarityMergeFunction(Document1, Document2)' > merged.ged

elliotchance commented 3 years ago

There is only one gedcom file provided, the command needs to look more like:

gedcom query -gedcom file1.ged -gedcom file2.ged -format gedcom \
  'MergeDocumentsAndIndividuals(Document1, Document2)' > merged.ged

Ref: https://godoc.org/github.com/elliotchance/gedcom/q

dschmidtadv commented 3 years ago

@elliotchance Sorry, my bad, it was actually

 /Users/dschmidt/Downloads/bin/gedcom query  -gedcom /Users/dschmidt/Downloads/combined0820/combined0820.ged d -gedcom /Users/dschmidt/Downloads/geneanet.ged  -format gedcom   'MergeDocumentsAndIndividuals(Document1, Document2)' > merged.ged