"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main.cpp" between
ansifilter-2.17.tar.bz2 and ansifilter-2.18.tar.bz2

About: Ansifilter parses common ANSI codes to remove them or to convert them to another colored text file format (HTML, TeX, LaTeX, RTF, Pango or BBCode).

main.cpp  (ansifilter-2.17.tar.bz2):main.cpp  (ansifilter-2.18.tar.bz2)
/*************************************************************************** /***************************************************************************
main.cpp - description main.cpp - description
------------------- -------------------
copyright : (C) 2007-2018 by Andre Simon copyright : (C) 2007-2021 by Andre Simon
email : a.simon@mailbox.org email : a.simon@mailbox.org
Highlight is a universal source code to HTML converter. Syntax highlighting Highlight is a universal source code to HTML converter. Syntax highlighting
is formatted by Cascading Style Sheets. It's possible to easily enhance is formatted by Cascading Style Sheets. It's possible to easily enhance
highlight's parsing database. highlight's parsing database.
***************************************************************************/ ***************************************************************************/
/* /*
This file is part of ANSIFilter. This file is part of ANSIFilter.
skipping to change at line 41 skipping to change at line 41
#include <memory> #include <memory>
#include "main.h" #include "main.h"
#include "codegenerator.h" #include "codegenerator.h"
#include "platform_fs.h" #include "platform_fs.h"
using namespace std; using namespace std;
void ANSIFilterApp::printVersionInfo() void ANSIFilterApp::printVersionInfo()
{ {
cout << "\n ansifilter version " cout << "\n ansifilter version "
<< ANSIFILTER_VERSION << Info::getVersion()
<< "\n Copyright (C) 2007-2020 Andre Simon <a dot simon at mailbox.org> << "\n Copyright (C) 2007-2021 Andre Simon <a dot simon at mailbox.org>
" "
<< "\n\n Argparser class" << "\n\n Argparser class"
<< "\n Copyright (C) 2006-2008 Antonio Diaz Diaz <ant_diaz at teleline. es>" << "\n Copyright (C) 2006-2008 Antonio Diaz Diaz <ant_diaz at teleline. es>"
<< "\n\n This software is released under the terms of the GNU General " << "\n\n This software is released under the terms of the GNU General "
<< "Public License." << "Public License."
<< "\n For more information about these matters, see the file named " << "\n For more information about these matters, see the file named "
<< "COPYING.\n"; << "COPYING.\n";
} }
void ANSIFilterApp::printHelp() void ANSIFilterApp::printHelp()
{ {
skipping to change at line 111 skipping to change at line 111
cout << "\nOther options:\n"; cout << "\nOther options:\n";
cout << " -h, --help Print help\n"; cout << " -h, --help Print help\n";
cout << " -v, --version Print version and license info\n"; cout << " -v, --version Print version and license info\n";
cout << "\nExamples:\n"; cout << "\nExamples:\n";
cout << "ansifilter -i input.ansi -o output.txt\n"; cout << "ansifilter -i input.ansi -o output.txt\n";
cout << "ansifilter *.txt\n"; cout << "ansifilter *.txt\n";
cout << "tail -f server.log | ansifilter\n\n"; cout << "tail -f server.log | ansifilter\n\n";
cout << "Parsing XBIN files overrides --art-width, --art-height and --map op tions.\n"; cout << "Parsing XBIN files overrides --art-width, --art-height and --map op tions.\n";
cout << "The ANSI art file formats BIN, XBIN and TND cannot be read from std in.\n"; cout << "The ANSI art file formats BIN, XBIN and TND cannot be read from std in.\n";
cout << "\nPlease report bugs to " ANSIFILTER_EMAIL "\n"; cout << "\nPlease report bugs to " << Info::getEmail()<< "\n";
cout << "For updates see " ANSIFILTER_URL "\n"; cout << "For updates see " << Info::getWebsite()<< "\n";
} }
int ANSIFilterApp::run( const int argc, const char *argv[] ) int ANSIFilterApp::run( const int argc, const char *argv[] )
{ {
CmdLineOptions options(argc, argv); CmdLineOptions options(argc, argv);
if (options.printVersion()) { if (options.printVersion()) {
printVersionInfo(); printVersionInfo();
return EXIT_SUCCESS; return EXIT_SUCCESS;
 End of changes. 3 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)