Deduplicate documentation
This commit is contained in:
parent
274c92a64b
commit
d8887f12c0
@ -17,20 +17,21 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
"""
|
||||||
|
Insert login information using pass and a dmenu-compatible application (e.g. dmenu, rofi -dmenu, ...). A short
|
||||||
|
demonstration can be seen here: https://i.imgur.com/KN3XuZP.gif.
|
||||||
|
"""
|
||||||
|
|
||||||
# Insert login information using pass and a dmenu-provider (e.g. dmenu, rofi -dmenu, ...).
|
USAGE = """The domain of the site has to appear as a segment in the pass path, for example: "github.com/cryzed" or
|
||||||
# A short demonstration can be seen here: https://i.imgur.com/KN3XuZP.gif.
|
"websites/github.com". How the username and password are determined is freely configurable using the CLI arguments. The
|
||||||
#
|
login information is inserted by emulating key events using qutebrowser's fake-key command in this manner:
|
||||||
# The domain of the site has to appear as a segment in the pass path, for example: "github.com/cryzed" or
|
[USERNAME]<Tab>[PASSWORD], which is compatible with almost all login forms."""
|
||||||
# "websites/github.com". How the username and password are determined is freely configurable using the CLI arguments.
|
|
||||||
# The login information is inserted by emulating key events using qutebrowser's fake-key command in this manner:
|
EPILOG = """Dependencies: tldextract (Python 3 module), pass.
|
||||||
# [USERNAME]<Tab>[PASSWORD], which is compatible with almost all login forms.
|
For issues and feedback please use: https://github.com/cryzed/qutebrowser-userscripts.
|
||||||
#
|
|
||||||
# Dependencies: tldextract (Python 3 module), pass
|
WARNING: The login details are viewable as plaintext in qutebrowser's debug log (qute://log) and might be shared if
|
||||||
# For issues and feedback please use: https://github.com/cryzed/qutebrowser-userscripts.
|
you decide to submit a crash report!"""
|
||||||
#
|
|
||||||
# WARNING: The login details are viewable as plaintext in qutebrowser's debug log (qute://log) and might be shared if
|
|
||||||
# you decide to submit a crash report!
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import enum
|
import enum
|
||||||
@ -44,15 +45,7 @@ import sys
|
|||||||
|
|
||||||
import tldextract
|
import tldextract
|
||||||
|
|
||||||
argument_parser = argparse.ArgumentParser(description=(
|
argument_parser = argparse.ArgumentParser(description=__doc__, usage=USAGE, epilog=EPILOG)
|
||||||
'Insert login information using pass and a dmenu-provider (e.g. dmenu, rofi -dmenu, ...). A short '
|
|
||||||
'demonstration can be seen here: https://i.imgur.com/KN3XuZP.gif.'), usage=(
|
|
||||||
'The domain of the site has to appear as a segment in the pass path, for example: "github.com/cryzed" or '
|
|
||||||
'"websites/github.com". How the username and password are determined is freely configurable using the CLI '
|
|
||||||
"arguments. The login information is inserted by emulating key events using qutebrowser's fake-key command in this "
|
|
||||||
'manner: [USERNAME]<Tab>[PASSWORD], which is compatible with almost all login forms.'), epilog=(
|
|
||||||
"WARNING: The login details are viewable as plaintext in qutebrowser's debug log (qute://log) and might be shared "
|
|
||||||
'if you decide to submit a crash report!'))
|
|
||||||
argument_parser.add_argument('url', nargs='?', default=os.getenv('QUTE_URL'))
|
argument_parser.add_argument('url', nargs='?', default=os.getenv('QUTE_URL'))
|
||||||
argument_parser.add_argument('--password-store', '-p', default=os.path.expanduser('~/.password-store'),
|
argument_parser.add_argument('--password-store', '-p', default=os.path.expanduser('~/.password-store'),
|
||||||
help='Path to your pass password-store')
|
help='Path to your pass password-store')
|
||||||
|
Loading…
Reference in New Issue
Block a user