diff options
| author | 2025-10-07 00:10:02 +0200 | |
|---|---|---|
| committer | 2025-11-10 02:39:57 +0000 | |
| commit | 19670fc751782d063fafd43c9be03ecc92572c6b (patch) | |
| tree | 0c7a3a803324e7cc9f70a6f2f5ed41907b4468e8 /src/bin/cli | |
| parent | 46cb61e9f90a480b0277816ae8d42e5b0c91fe0c (diff) | |
| download | OneRoll-19670fc751782d063fafd43c9be03ecc92572c6b.tar.gz OneRoll-19670fc751782d063fafd43c9be03ecc92572c6b.zip | |
Fix error and cpp style.
Diffstat (limited to 'src/bin/cli')
| -rw-r--r-- | src/bin/cli/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/cli/main.cpp b/src/bin/cli/main.cpp index 91fa1ef..a63f0ab 100644 --- a/src/bin/cli/main.cpp +++ b/src/bin/cli/main.cpp @@ -304,6 +304,7 @@ int startDiceParsing(QStringList& cmds, bool withColor, QString baseColor, EXPOR DiceParser parser; parser.insertAlias(new DiceAlias("L5R5R", QStringLiteral("L[-,⨀,⨀⬢,❂⬢,❁,❁⬢]")), 0); parser.insertAlias(new DiceAlias("L5R5S", QStringLiteral("L[-,-,⨀,⨀,⨀❁,⨀⬢,⨀⬢,❂,❂⬢,❁,❁,❁]")), 1); + // parser.setVariableDictionary({{"air", "3"}}); int i= 2; for(auto alias : array) { @@ -467,7 +468,7 @@ int main(int argc, char* argv[]) #endif QStringList commands; - QString cmd; + QString cmd, charactersheet; QString dotFileStr; bool colorb= true; QSettings settings("rolisteam", "diceparser"); @@ -564,6 +565,10 @@ int main(int argc, char* argv[]) { dotFileStr= optionParser.value(dotFile); } + else if(optionParser.isSet(character)) + { + charactersheet= optionParser.value(character); + } if(optionParser.isSet(markdown)) { format= MARKDOWN; |