X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/ffba5290f8f2c8f215cc07d59cf5559f5383c8b8..18ff567719ef1e5437bef12b937fe95686c336b5:/emufs_gui/emufs_view.c?ds=inline diff --git a/emufs_gui/emufs_view.c b/emufs_gui/emufs_view.c index 7d2616d..8750c48 100644 --- a/emufs_gui/emufs_view.c +++ b/emufs_gui/emufs_view.c @@ -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; } + 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;