From 472f3d3bf50b352165bc192ce5d0ffa45d81ce00 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 31 Aug 2014 13:28:22 +0200 Subject: Version 1.0 completed --- beinc_poller.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'beinc_poller.py') diff --git a/beinc_poller.py b/beinc_poller.py index 4fbe0e0..a1269c2 100755 --- a/beinc_poller.py +++ b/beinc_poller.py @@ -86,6 +86,11 @@ class ValidHTTPSHandler(urllib2.HTTPSHandler): def poll_notifications(scheduler, args, notification_obj): """ + the core function initiated by the scheduler performing a single poll + + scheduler: scheduler object + args: the argparse processed command-line arguments + notification_obj: pynotify or pyosd notification object """ try: post_values = {'password': args.password} @@ -193,11 +198,12 @@ def main(): help='BEINC osd-system ("pynotify" or "pyosd") (default: pynotify)') parser.add_argument( '-P', '--password', - metavar='PASSWORD', + metavar='PASSWORD[FILE]', type=str, dest='password', default='', - help='BEINC taget-password (default & recommended: prompt for passwd)') + help='BEINC taget-password / text-file containing the target password' + ' (default & recommended: prompt for passwd)') parser.add_argument( '-p', '--position', metavar='POSITION', -- cgit v1.3