From 2352d6fdf96294d01083b2aff1fa0d9c0dda6273 Mon Sep 17 00:00:00 2001 From: Walter Date: Fri, 19 Apr 2024 14:50:00 +1200 Subject: [PATCH] more description for logunicode #113 --- lphybeast/src/main/java/lphybeast/LPhyBeastCMD.java | 5 ++++- lphybeast/src/main/java/lphybeast/LPhyBeastConfig.java | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lphybeast/src/main/java/lphybeast/LPhyBeastCMD.java b/lphybeast/src/main/java/lphybeast/LPhyBeastCMD.java index 18e55f7..c34ea9e 100644 --- a/lphybeast/src/main/java/lphybeast/LPhyBeastCMD.java +++ b/lphybeast/src/main/java/lphybeast/LPhyBeastCMD.java @@ -78,7 +78,10 @@ public class LPhyBeastCMD implements Callable { @Option(names = {"-seed"}, description = "the seed to run the LPhy script.") int seed; - @Option(names = {"-u", "--logunicode"}, defaultValue = "false", description = "logging as unicode for non-Windows users.") + @Option(names = {"-u", "--logunicode"}, defaultValue = "false", + description = "whether to log IDs in unicode. " + + "If false as default, the original ID in unicode will be converted to canonical letters, " + + "specially for avoiding the displaying issue in Windows.") boolean logunicode; @Option(names = {"-vf", "--version_file"}, split = ",", diff --git a/lphybeast/src/main/java/lphybeast/LPhyBeastConfig.java b/lphybeast/src/main/java/lphybeast/LPhyBeastConfig.java index 3146777..688ffc7 100644 --- a/lphybeast/src/main/java/lphybeast/LPhyBeastConfig.java +++ b/lphybeast/src/main/java/lphybeast/LPhyBeastConfig.java @@ -78,6 +78,8 @@ public LPhyBeastConfig(Path infile, Path outfile, Path wd, String[] lphyConst, S this.lphyConst = lphyConst; // Ignoring the logging ability for the given lphy random variables this.varNotLog = varNotLog; + // whether to log IDs in unicode. If false as default, + // the original ID in unicode will be converted to canonical letters for Windows users. this.logunicode = logunicode; if (infile == null || !infile.toFile().exists())