diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-11 13:37:10 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-11 13:37:10 (GMT) |
commit | 79c7a88dba9e7f136ab87b824414d47fa6ae94fe (patch) | |
tree | 681a7466e3b479e91497f6c094891b1496d161e1 /src/doxygen.cpp | |
parent | 9440d7ce0b31749b6bbb13e70e2f7ed501505c7e (diff) | |
parent | e7fde5d604faf27dec989c8894e949d48676e0c1 (diff) | |
download | Doxygen-79c7a88dba9e7f136ab87b824414d47fa6ae94fe.zip Doxygen-79c7a88dba9e7f136ab87b824414d47fa6ae94fe.tar.gz Doxygen-79c7a88dba9e7f136ab87b824414d47fa6ae94fe.tar.bz2 |
Merge branch 'feature/issue_6517' of https://github.com/albert-github/doxygen into albert-github-feature/issue_6517
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 511795f..9bf4f0f 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -103,6 +103,7 @@ #include "settings.h" #include "context.h" #include "fileparser.h" +#include "emoji.h" // provided by the generated file resources.cpp extern void initResources(); @@ -10063,6 +10064,9 @@ static void usage(const char *name) msg(" RTF: %s -e rtf extensionsFile\n\n",name); msg("7) Use doxygen to compare the used configuration file with the template configuration file\n"); msg(" %s -x [configFile]\n\n",name); + msg("8) Use doxygen to show a list of build in emoji.\n"); + msg(" %s -f emoji outputFileName\n\n",name); + msg(" If - is used for outputFileName doxygen will write to standard output.\n\n"); msg("If -s is specified the comments of the configuration items in the config file will be omitted.\n"); msg("If configName is omitted `Doxyfile' will be used as a default.\n\n"); msg("-v print version string\n"); @@ -10263,6 +10267,7 @@ void readConfiguration(int argc, char **argv) const char *layoutName=0; const char *debugLabel; const char *formatName; + const char *listName; bool genConfig=FALSE; bool shortList=FALSE; bool diffList=FALSE; @@ -10340,6 +10345,34 @@ void readConfiguration(int argc, char **argv) cleanUpDoxygen(); exit(1); break; + case 'f': + listName=getArg(argc,argv,optind); + if (!listName) + { + err("option \"-f\" is missing list specifier.\n"); + cleanUpDoxygen(); + exit(1); + } + if (qstricmp(listName,"emoji")==0) + { + if (optind+1>=argc) + { + err("option \"-f emoji\" is missing an output file name\n"); + cleanUpDoxygen(); + exit(1); + } + QFile f; + if (openOutputFile(argv[optind+1],f)) + { + EmojiEntityMapper::instance()->writeEmojiFile(f); + } + cleanUpDoxygen(); + exit(0); + } + err("option \"-f\" has invalid list specifier.\n"); + cleanUpDoxygen(); + exit(1); + break; case 'w': formatName=getArg(argc,argv,optind); if (!formatName) |