Error while import csv file into collection

mongoimport -u “mongoadmin” -p “xxxxx” -d NCCI_MO -c R_NCCI_EXC_XWALK_CL --authenticationDatabase “admin” –-type csv --file XWalk.csv -–headerline &> NCCIMO_R_NCCI_EXC_XWALK_CL_csvoutput_mar21.log

2022-03-21T07:06:53.142+0000 error parsing command line options: unknown option “–headerline”
2022-03-21T07:06:53.143+0000 try ‘mongoimport --help’ for more information

BUT WHEN I IMPORT VIA MONGODB COMPASS, it success

any idae what could be the reason for the error in via command line. i dont see any syntax error

mongodb version is 5.0.4

any help appreciated

Your hypen looks different for header and type
Try to type instead of cut &paste

my bad. i was using wrong quote …

“ - not compatible
" - compatible

the problem solved