mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 13:57:59 +01:00
add documentation
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
f763d3dae6
commit
acc543cfe0
1 changed files with 18 additions and 0 deletions
|
@ -1054,6 +1054,12 @@ class Ponysay():
|
|||
|
||||
|
||||
def __getHyphen(self, args):
|
||||
'''
|
||||
Gets the hyphen to use a at hyphenation
|
||||
|
||||
@param args:ArgParser Command line options
|
||||
@return :str The hyphen string to use at hyphenation
|
||||
'''
|
||||
hyphen = os.environ['PONYSAY_WRAP_HYPHEN'] if 'PONYSAY_WRAP_HYPHEN' in os.environ else None
|
||||
if (hyphen is None) or (len(hyphen) == 0):
|
||||
hyphen = '-'
|
||||
|
@ -1064,6 +1070,12 @@ class Ponysay():
|
|||
|
||||
|
||||
def __getLinkColour(self, args):
|
||||
'''
|
||||
Gets the colour of balloon links
|
||||
|
||||
@param args:ArgParser Command line options
|
||||
@return :str The colour of balloon links
|
||||
'''
|
||||
linkcolour = ''
|
||||
if args.opts['--colour-link'] is not None:
|
||||
linkcolour = '\033[' + ';'.join(args.opts['--colour-link']) + 'm'
|
||||
|
@ -1071,6 +1083,12 @@ class Ponysay():
|
|||
|
||||
|
||||
def __getBalloonColour(self, args):
|
||||
'''
|
||||
Gets the colour of balloons
|
||||
|
||||
@param args:ArgParser Command line options
|
||||
@return :str The colour of balloons
|
||||
'''
|
||||
ballooncolour = ''
|
||||
if args.opts['--colour-bubble'] is not None:
|
||||
ballooncolour = '\033[' + ';'.join(args.opts['--colour-bubble']) + 'm'
|
||||
|
|
Loading…
Reference in a new issue