From 19670fc751782d063fafd43c9be03ecc92572c6b Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Tue, 7 Oct 2025 00:10:02 +0200 Subject: Fix error and cpp style. --- src/bin/cli/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/bin/cli') 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; -- cgit v1.2.3-70-g09d2