Fixed a few imports and docs.

This commit is contained in:
Michael Lazar
2015-03-20 02:25:23 -07:00
parent 7d9c8ad0d4
commit 688289f00c
5 changed files with 16 additions and 16 deletions

View File

@@ -45,8 +45,8 @@ def command_line():
parser.add_argument('-l', dest='link', help='full link to a submission') parser.add_argument('-l', dest='link', help='full link to a submission')
parser.add_argument('--unicode', action='store_true', parser.add_argument('--unicode', action='store_true',
help='enable unicode (experimental)') help='enable unicode (experimental)')
parser.add_argument('--log', action='store', parser.add_argument('--log', metavar='FILE', action='store',
help='Log all HTTP requests to the given file') help='Log HTTP requests')
group = parser.add_argument_group('authentication (optional)', AUTH) group = parser.add_argument_group('authentication (optional)', AUTH)
group.add_argument('-u', dest='username', help='reddit username') group.add_argument('-u', dest='username', help='reddit username')

View File

@@ -3,6 +3,7 @@ import time
import threading import threading
import curses import curses
from curses import textpad, ascii from curses import textpad, ascii
from contextlib import contextmanager
from .docs import HELP from .docs import HELP
from .helpers import strip_textpad from .helpers import strip_textpad

View File

@@ -11,10 +11,9 @@ Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
terminal window. terminal window.
""" """
AUTH = """ AUTH = """\
Authenticating is required to vote and leave comments. For added security, it Authenticating is required to vote and leave comments. If only a username is
is recommended that only you only provide a username. There will be an given, the program will display a secure prompt to enter a password.
additional prompt for the password if it is not provided.
""" """
CONTROLS = """ CONTROLS = """

View File

@@ -6,9 +6,9 @@ import praw.errors
from .content import SubmissionContent from .content import SubmissionContent
from .page import BasePage from .page import BasePage
from .workers import LoadScreen, open_browser from .helpers import clean, open_browser
from .curses_helpers import (BULLET, UARROW, DARROW, Color, show_help, from .curses_helpers import (BULLET, UARROW, DARROW, Color, LoadScreen,
text_input) show_help, text_input)
__all__ = ['SubmissionPage'] __all__ = ['SubmissionPage']

View File

@@ -7,9 +7,9 @@ from .exceptions import SubredditError
from .page import BasePage from .page import BasePage
from .submission import SubmissionPage from .submission import SubmissionPage
from .content import SubredditContent from .content import SubredditContent
from .workers import LoadScreen, open_browser from .helpers import clean, open_browser
from .curses_helpers import (BULLET, UARROW, DARROW, Color, text_input, from .curses_helpers import (BULLET, UARROW, DARROW, Color, LoadScreen,
show_notification, show_help) text_input, show_notification, show_help)
__all__ = ['opened_links', 'SubredditPage'] __all__ = ['opened_links', 'SubredditPage']