aboutsummaryrefslogtreecommitdiffstats
path: root/pushover.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-08-16 19:55:02 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2014-08-16 19:55:02 -0400
commit0ed8bc145d61e01ba7b29e887242b1c41d4911fb (patch)
tree3ff734d619be5e45705d9d3146a7c2d1da500953 /pushover.py
parent3d24207be6bf78d7449b83983fd360bb57863ac9 (diff)
downloadpython-pushover-0ed8bc145d61e01ba7b29e887242b1c41d4911fb.tar.gz
Better help
Diffstat (limited to 'pushover.py')
-rw-r--r--pushover.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pushover.py b/pushover.py
index 9782d7c..9946eba 100644
--- a/pushover.py
+++ b/pushover.py
@@ -49,8 +49,8 @@ class InitError(Exception):
"""
def __str__(self):
- return "No api_token provided. Init the pushover module by\
- calling the init function"
+ return ("No api_token provided. Init the pushover module by "
+ "calling the init function")
class UserError(Exception):
@@ -59,7 +59,7 @@ class UserError(Exception):
"""
def __str__(self):
- return "No :attr:`user_key` attribute provided."
+ return "No user_key attribute provided."
class RequestError(Exception):
@@ -257,8 +257,8 @@ def main():
parser.add_argument("--priority", "-p", help="message priority")
parser.add_argument("--url", help="additional url")
parser.add_argument("--url-title", help="additional url title")
- parser.add_argument("-c", "--config", help="configuration file",
- default="~/.pushoverrc")
+ parser.add_argument("-c", "--config", help="configuration file\
+ (default: ~/.pushoverrc)", default="~/.pushoverrc")
parser.add_argument("--profile", help="profile to read in the\
configuration file (default: Default)",
default="Default")