Index: /trunk/ppSim/src/ppSimArguments.c
===================================================================
--- /trunk/ppSim/src/ppSimArguments.c	(revision 12970)
+++ /trunk/ppSim/src/ppSimArguments.c	(revision 12971)
@@ -72,4 +72,5 @@
     psMetadataAddF32(arguments, PS_LIST_TAIL, "-starsmag", 0, "Brightest magnitude for fake stars", NAN);
     psMetadataAddF32(arguments, PS_LIST_TAIL, "-starsdensity", 0, "Density of fake stars at magnitude", NAN);
+    psMetadataAddS32(arguments, PS_LIST_TAIL, "-bin", 0, "Binning in x and y", 1);
 
     if (!config->camera) {
@@ -165,4 +166,10 @@
                      "Overscan polynomial order", biasOrder);
 
+    int bin = psMetadataLookupS32(NULL, arguments, "-bin"); // Binning in x and y
+    if (bin <= 0) {
+        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Binning is non-positive.");
+        usage(arguments, config);
+    }
+    psMetadataAddS32(config->arguments, PS_LIST_TAIL, "-bin", 0, "Binning in x and y", bin);
 
     psMetadataAddStr(config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Name of the output image",
