Skip to content

Commit

Permalink
more description for logunicode #113
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Apr 19, 2024
1 parent d71f1f8 commit 2352d6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lphybeast/src/main/java/lphybeast/LPhyBeastCMD.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ public class LPhyBeastCMD implements Callable<Integer> {
@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 = ",",
Expand Down
2 changes: 2 additions & 0 deletions lphybeast/src/main/java/lphybeast/LPhyBeastConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 2352d6f

Please sign in to comment.