Fix argparse descriptions in qutebrowser userscripts

This commit is contained in:
Tobias Reisinger 2023-10-29 13:05:53 +01:00
parent 1251bb4eab
commit 73bc6e2c78
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ def error(msg):
qute('message-error "{}"'.format(msg)) qute('message-error "{}"'.format(msg))
def parse_args(): def parse_args():
parser = argparse.ArgumentParser(description="Full passwords from KeepassXC") parser = argparse.ArgumentParser(description="Clear URL and yank to clipboard")
parser.add_argument('--selection', '-s', action='store_true', parser.add_argument('--selection', '-s', action='store_true',
help='Yank to selection') help='Yank to selection')
return parser.parse_args() return parser.parse_args()

View file

@ -88,7 +88,7 @@ import nacl.public
def parse_args(): def parse_args():
parser = argparse.ArgumentParser(description="Full passwords from KeepassXC") parser = argparse.ArgumentParser(description="Fill passwords from KeepassXC")
parser.add_argument('url', nargs='?', default=os.environ.get('QUTE_URL')) parser.add_argument('url', nargs='?', default=os.environ.get('QUTE_URL'))
parser.add_argument('--socket', '-s', default='/run/user/{}/org.keepassxc.KeePassXC.BrowserServer'.format(os.getuid()), parser.add_argument('--socket', '-s', default='/run/user/{}/org.keepassxc.KeePassXC.BrowserServer'.format(os.getuid()),
help='Path to KeepassXC browser socket') help='Path to KeepassXC browser socket')