mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the help text for --userdb a little more useful
This commit is contained in:
parent
20442f39a9
commit
9515cbf589
@ -19,6 +19,7 @@ from calibre.srv.http_response import create_http_handler
|
||||
from calibre.srv.handler import Handler
|
||||
from calibre.srv.utils import RotatingLog
|
||||
from calibre.utils.config import prefs
|
||||
from calibre.utils.localization import localize_user_manual_link
|
||||
from calibre.utils.lock import singleinstance
|
||||
from calibre.db.legacy import LibraryDatabase
|
||||
|
||||
@ -286,6 +287,13 @@ libraries that the main calibre program knows about will be used.
|
||||
'--manage-users', default=False, action='store_true',
|
||||
help=_('Manage the database of users allowed to connect to this server.'
|
||||
' See also the %s option.') % '--userdb')
|
||||
parser.get_option('--userdb').help = _(
|
||||
'Path to the user database to use for authentication. The database'
|
||||
' is a SQLite file. To create it use {0}. You can read more'
|
||||
' about managing users at: {1}').format(
|
||||
'--manage-users', localize_user_manual_link(
|
||||
'https://manual.calibre-ebook.com/server.html#managing-user-accounts-from-the-command-line-only'
|
||||
))
|
||||
|
||||
return parser
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user