From 20d8f4d26b54538f9a1d67b7b9c51e0f30473657 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sat, 26 May 2007 12:19:08 +0000 Subject: [PATCH] Hide --session from --help output and remove its mention from the manual, internal use only. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4525 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- docs/irssi.1 | 4 ---- src/core/session.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/irssi.1 b/docs/irssi.1 index e435ec46..b7602c18 100644 --- a/docs/irssi.1 +++ b/docs/irssi.1 @@ -24,10 +24,6 @@ specifies the home directory of Irssi. Default is .BR ~/.irssi .TP -.BI "\-\-session="PATH -this option is here just for internal use. It is needed during an /UPGRADE. -For more information see /help upgrade. -.TP .BI "\-c, \-\-connect="SERVER connects to .I SERVER diff --git a/src/core/session.c b/src/core/session.c index 4b0773fc..ee1e2456 100644 --- a/src/core/session.c +++ b/src/core/session.c @@ -335,7 +335,7 @@ static void sig_init_finished(void) void session_register_options(void) { static struct poptOption options[] = { - { "session", 0, POPT_ARG_STRING, &session_file, 0, "Used by /UPGRADE command", "PATH" }, + { "session", 0, POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN, &session_file, 0, "Used by /UPGRADE command", "PATH" }, { NULL, '\0', 0, NULL } };