From 551b7e4b4566475b4c2a539746803b10b796596a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 6 Oct 2015 13:23:01 +0200 Subject: [PATCH] Patch for an Issue #1450 --- lib/core/settings.py | 49 ++++++++++++++++++++++++++++++++++++++++++++ lib/parse/cmdline.py | 9 ++++++++ 2 files changed, 58 insertions(+) diff --git a/lib/core/settings.py b/lib/core/settings.py index c18eb57dd..3256c0fa1 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -680,3 +680,52 @@ th{ font-size:10px; } """ + +NNC5ED_LOGO = """ +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM +MMWWMMMWWMMMWWMMMMWWMMMMWWMMMWWMMMMMWMMMWWWMMMMMMMWWMMMWWMWMWWWWMMMWWWMMMWMWWWMMMMMWWMMMMM +MMNNNMMNNMMWXNNMMMWNWMMWNWMMNNNWMMMNNWMWNNNMMMMMMWNNWMMNNWNWWWWWMNNWWNNNWNNWWWNWMMNNNNMMMM +MMWWWNWNXMMNNWNNMMMNNMWNWMMWXWNXWMMNXWMNNWNNMMMMMWNWNNWXNWNWWNWWNNWMMMWWWNNWWNNWMWXWNXWMMM +MMNNMWNNNMNNNNNXWMMMNNNNMMWNNNNXNMMNNWWNNNNXWMMMMWXWMNNNNWNWMMMMWNWMWWNNWNNWWWWMWNNNNXNMMM +MMNNMMWNNWNWMMMNNWMMWWNMMMNNMMMWNNWNWWNNMMMNNWMMMWNWMMNNWWNWWNNWMWNWWNNWMWWMMMWWNNWMMWNNMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMNXXXXXXXXXXXXXXNMMMMMMMMMMMMMMMMMMWXXXXXXXXXXXXXXNMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMM00:,'',,;'...';cld0XXWMMMMMMMMWXXKxlc;'...';,,'',:O0MMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMNK,       .,;:.     .:kKXXXXXXKkc.     .:;,.       .XXMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMM0W            ;d.      'c;,,;:,      .d;            N0MMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMM0W              K;                  'K.         .odoX0MMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMM0W            :l.          '         .cc        OOX00MMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMKX.         ':             .;           ;,       :lcN0MMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMM0l        ;.               l             ;        ;0WMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMM0X       .                 l              .       O0MMMMMMMMMMMMMMMMMM +MMMMMMMMMMMWXXXXXMMMW0d                        :                     cKNMMMXXXXXXWMMMMMMMM +MMMMMMMMMMXKl. .dKNMMNKo      .'::             '          ;:,.      lKXMMN0d.  .:KKMMMMMMM +MMMMMMMMMM0:     dxkO0OKK;  ,KMMMN    ,ko.     .   lO:    0MMMXc  ,0X00OOxO      ;KXMMMMMM +MMMMMMMMMKX.             :  kMMMMM.  oMMMWo      cWMMMO   WMMMMK  c               :0WMMMMM +MMMMMMMMM0K             .'   kMMMMx .MMMMMM0    kMMMMMM: lMMMM0.  .'              ;0WMMMMM +MMMMMMMMMXK:   ;0XXXXXXKN.    'kWMMl:MMMMMMMd  cMMMMMMMo;MMMO,     XKXXXXXXXOo,.,o0XMMMMMM +MMMMMMMMMMNXX0XXNMMMMMMM0O       ,ldlkO0OOxl.   cxOO0OOodl,       k0WMMMMMMMMXXXXXMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMWO0                                      k0KWMMMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMNKOooxKXXXXkoc,,.                ..                .;.,ldOXXXNMNXXXWMMMMMMMMMM +MMMMMMMMMMMWOd     :;.      .c.            oNMMWx            .o,       .;ldd:;ckKNMMMMMMMM +MMMMMMMMMMMW0:           .:d0XXOl'        'WKMMKN;        'lkXXXOo;.            l0WMMMMMMM +MMMMMMMMMMMMOx       .:d0XXWMMXXk0OO:.       0X.      .,kO0OKXMMMNXXOo;         .KXMMMMMMM +MMMMMMMMMMMM0o      ;XXNMMMMWK00kNOk0Xkx,          'dxKKkONkO0KNMMMMMNKN.       O0MMMMMMMM +MMMMMMMMMMMMXKd.  .lKXMMMMMMO0Kk0xKxXkKXX0Oo,..,lkOXX000xKxKkKO0WMMMMMM00.     d0MMMMMMMMM +MMMMMMMMMMMMMMXXXXXXWMMMMMM0W000WO00XK0NKk;;cll:,,xKN0N0000X0OKX0MMMMMMMXXxlloOKWMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMM0WX0NK0KXKX00l;NdlollXN.x0KXKXK0KX0WX0MMMMMMMMMMNXNMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMWXXNMNXXNMN0d ;,.ccc;.c'.k0MMWKXXMWXXNMMMMMMMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0N  kKKKOOKKK: 'KXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0N  WMMlNKOMMx 'KXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0N  WMMdX0OMMx 'KXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0N  k00000000: 'KXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0d::::::::::::k0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM +MMMMMMMW00OOXMMMMMMMMMMMMMMMMMMMMMMMMMMXXXXXXXXXXXXXNMMMMMMMMMMN00O0WMMMMMMMMMMMMMMMMMMMMM +MMMMMMd;KMMK,:XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKlKMMMMMMMMMMXclNMWd,dMMMMMMMMMMMMMMMMMMMM +MMMMMO';NMMMxo0No:lccOM0oxdc:lNWd::;:xWNdk00loNl,';:NOc::;:kM:'oMMMXodW0c:l:oXMdokl:ckMMMM +MMMMMk''KMMNdxKo';WN''kk'dXK,'0o',dc''kl'0MMKkXK''KNMklldc',W;':MMM0xxX''xMx',W:,0Xd';MMMM +MMMMMWl,WMMW';XO,,K0',0k'dMN''K0cckx',Kk'0MMo,K0''kcd''ck,',WK;oMMMk'dWc'oXo':W:'XMx':MMMM +MMMMMMMXOO0KKWMMNOxxONMXOXMWkxNMKkxxONMMX0KK0NMM0xxOW0xxO0kOWMMKOO00NMMMKkxkKMMOOWMXxOMMMM +MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM + +""" \ No newline at end of file diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 03bb1ac80..5c0dc16d7 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -17,6 +17,7 @@ from optparse import SUPPRESS_HELP from lib.core.common import checkDeprecatedOptions from lib.core.common import checkSystemEncoding +from lib.core.common import dataToStdout from lib.core.common import expandMnemonics from lib.core.common import getUnicode from lib.core.data import cmdLineOptions @@ -30,6 +31,7 @@ from lib.core.settings import BASIC_HELP_ITEMS from lib.core.settings import DUMMY_URL from lib.core.settings import IS_WIN from lib.core.settings import MAX_HELP_OPTION_LENGTH +from lib.core.settings import NNC5ED_LOGO from lib.core.settings import VERSION_STRING from lib.core.shell import autoCompletion from lib.core.shell import clearHistory @@ -780,6 +782,9 @@ def cmdLineParser(argv=None): parser.add_option("--run-case", dest="runCase", help=SUPPRESS_HELP) + parser.add_option("--nnc5ed", dest="nnc5ed", action="store_true", + help=SUPPRESS_HELP) # temporary hidden switch :) + parser.add_option_group(target) parser.add_option_group(request) parser.add_option_group(optimization) @@ -925,6 +930,10 @@ def cmdLineParser(argv=None): if argv[i] == "-z": expandMnemonics(argv[i + 1], parser, args) + if args.nnc5ed: + dataToStdout(NNC5ED_LOGO) + raise SystemExit + if args.dummy: args.url = args.url or DUMMY_URL