aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-12-19 23:39:49 +0100
committerRenaud G <renaud@rolisteam.org>2018-12-19 23:39:49 +0100
commit517dcb09609999dd96390a7db1690a35bf39508f (patch)
tree67d8006b854d7b27bacfa54f6cc8fb4129b26d98 /cli
parent20a3f37a66a5dc4bd1bd359cad2a7d6870061fc6 (diff)
downloadOneRoll-517dcb09609999dd96390a7db1690a35bf39508f.tar.gz
OneRoll-517dcb09609999dd96390a7db1690a35bf39508f.zip
fix several little issue.
Diffstat (limited to 'cli')
-rw-r--r--cli/main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/main.cpp b/cli/main.cpp
index 0f984c1..e93c492 100644
--- a/cli/main.cpp
+++ b/cli/main.cpp
@@ -259,6 +259,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF
QString warnings = parser.humanReadableWarning();
QStringList strLst;
QStringList listOfDiceResult;
+ QString cmdRework = parser.getDiceCommand();
if(parser.hasIntegerResultNotInFirst())
{
@@ -357,21 +358,21 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF
switch(format)
{
case TERMINAL:
- displayCommandResult(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor);
+ displayCommandResult(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor);
break;
case SVG:
- displaySVG(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor);
+ displaySVG(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor);
break;
case BOT:
case MARKDOWN:
- displayMarkdown(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor);
+ displayMarkdown(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor);
break;
case JSON:
- displayJSon(scalarText, resultStr, array, withColor, cmd, error,warnings, comment, allSameFaceCount, allSameColor);
+ displayJSon(scalarText, resultStr, array, withColor, cmdRework, error,warnings, comment, allSameFaceCount, allSameColor);
break;
#ifdef PAINTER_OP
case IMAGE:
- displayImage(scalarText, resultStr, array, withColor, cmd, comment, allSameFaceCount, allSameColor);
+ displayImage(scalarText, resultStr, array, withColor, cmdRework, comment, allSameFaceCount, allSameColor);
break;
#endif
}