fix: -m missing

This commit is contained in:
kuoi 2024-12-10 19:11:18 +11:00
parent 9b828f5542
commit 5a504bcdfd

View file

@ -17,9 +17,9 @@ void show_help(string pkgver) {
License: GPL-2.0-only License: GPL-2.0-only
Author: Guoyi Zhang Author: Guoyi Zhang
-c\t--config\tconfig file for software path (optional) -c\t--config\tconfig file for software path (optional)
-g\t--genes\t\tgene file path (optional, if -r is specified)
-f\t--functions\tfunctions type (optional): all clean assembly -f\t--functions\tfunctions type (optional): all clean assembly
\t \t map postmap varcall consen codon align trim \t \t map postmap varcall consen codon align trim
-g\t--genes\t\tgene file path (optional, if -r is specified)
-h\t--help\t\tshow this information -h\t--help\t\tshow this information
-l\t--list\t\tlist file path -l\t--list\t\tlist file path
-m\t--memory\tmemory settings (optional, default 16 GB) -m\t--memory\tmemory settings (optional, default 16 GB)
@ -632,6 +632,10 @@ void main(string[] args) {
i++; i++;
ARG_L ~= readArrFromFile(args[i]); ARG_L ~= readArrFromFile(args[i]);
break; break;
case "-m", "--memory":
i++;
ARG_M = args[i].to!int;
break;
case "-r", "--reference": case "-r", "--reference":
i++; i++;
ARG_R = args[i]; ARG_R = args[i];
@ -679,14 +683,14 @@ void main(string[] args) {
i++; i++;
PathMacse = args[i]; PathMacse = args[i];
break; break;
case "--trimal":
i++;
PathTrimal = args[i];
break;
case "--delstop": case "--delstop":
i++; i++;
PathDelstop = args[i]; PathDelstop = args[i];
break; break;
case "--trimal":
i++;
PathTrimal = args[i];
break;
default: default:
break; break;
} }