Trying to import Osm.pbf file into Postgresql

I am trying to set up a tile server on Ubuntu Server 12.04 and I have installed Postgresql and PostGis and Mapnik and Osm2pgsql. I am trying to run the following command to import the maps of Northern Ireland into the gis database.
osm2pgsql --slim -d gis -W -S -C 800 ireland-and-northern-ireland.osm.pbf

And then when I hit enter I get prompted to enter my password then I get the following what I assume is an error

Using projection SRS 900913 (Spherical Mercator)
Couldn’t open style file ‘-C’: No such file or directory
Error occurred, cleaning up
I do not understand what is going on and how to get the osm file into the database all help is greatly appreciated. Thanks in advance

You need to specify a file name for the Style File, default is somewhere like /usr/bin/etc. You ought to be able to get away without specifying this.

I think your command line should look like “-S /dir/ -C 800” or just drop the -S flag.

I’m afraid the forums are not heavily used by english language users, so queries can linger here for ages.

Incidentally I find remembering all the flags for osm2pgsql a pain so I have a set of relevant batch or shell scripts to do it.