]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs_gui/emufs_view.c
* bugfixes
[z.facultad/75.06/emufs.git] / emufs_gui / emufs_view.c
index 7d2616d9ff6672344f18b3ffc1eda7ba421113ea..8750c48a36998fad19500fe364bbbf623ba1080f 100644 (file)
@@ -118,6 +118,19 @@ t_Param param_ok(int argc, char *argv[])
                                                                parametros.tam_bloque_nota = atoi(argv[i]);
                                                                if (parametros.tam_bloque_nota <= 0) return SHOW_HELP;
                                                        }
                                                                parametros.tam_bloque_nota = atoi(argv[i]);
                                                                if (parametros.tam_bloque_nota <= 0) return SHOW_HELP;
                                                        }
+                                               break;
+                                               case 2:
+                                                       if (i >= argc) return SHOW_HELP;
+                                                       n = atoi(argv[i]);
+                                                       if ((n<1) || (n>3)) return SHOW_HELP;
+                                                       parametros.tipo_arch_nota = n;
+                                                       if (((n == 1) || (n == 3)) && ((i+1)>=argc))
+                                                               return SHOW_HELP;
+                                                       i++;
+                                                       if (n != 2) {
+                                                               parametros.tam_bloque_nota = atoi(argv[i]);
+                                                               if (parametros.tam_bloque_nota <= 0) return SHOW_HELP;
+                                                       }
                                        }
                                        PERR("ACA");
                                        parametros.xml_fact = file;
                                        }
                                        PERR("ACA");
                                        parametros.xml_fact = file;