From: Oleg Broytman Date: Sun, 13 May 2018 22:56:46 +0000 (+0300) Subject: Docs: Document the second ml-web.py detects the first X-Git-Tag: 0.1.1~5 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=ce323cc1847cdb57a6fc6df2c685e68fd76be522 Docs: Document the second ml-web.py detects the first --- diff --git a/docs-ru/command_line.rst b/docs-ru/command_line.rst index c4f0345..5ce2389 100644 --- a/docs-ru/command_line.rst +++ b/docs-ru/command_line.rst @@ -283,4 +283,8 @@ ml-web.py браузер (или открывает новое окно уже запущенного web-обозревателя) с адресом, указывающим на сервер. +Если одна копия программы уже запущена, а пользователь запустил вторую, +вторая копия определяет наличие первой, запускает браузер с адресом +первого web-сервера и останавливается. + .. vim: set tw=72 : diff --git a/docs/command_line.rst b/docs/command_line.rst index 5e07c55..afdb423 100644 --- a/docs/command_line.rst +++ b/docs/command_line.rst @@ -274,8 +274,11 @@ Options:: -p, --port port HTTP port to listen to -Run a web server. If a port is given listen on the given port. Else -choose a random port. Start a browser (or open a new window of a running -browser) pointing it to the server. +Run a web server. If a port is given listens on the given port else +chooses a random port. Starts a browser (or open a new window of a +running browser) pointing it to the server. + +If the program is already running the second instance detects the first +one, starts a browser pointing to running instance and exits. .. vim: set tw=72 :