about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-23 22:43:05 +0100
committerJames Booth <boothj5@gmail.com>2014-04-23 22:43:05 +0100
commit034a98587c239745d0af07a0d3ef369e46c92ea9 (patch)
treef43192f0714ecacadd193b871b6bf4f3e002f9be
parentc7b3ff02ff00c8266710a11dc5728f769d643570 (diff)
downloadprofani-tty-034a98587c239745d0af07a0d3ef369e46c92ea9.tar.gz
Added -a (--account) option to man page
-rw-r--r--docs/profanity.13
-rw-r--r--src/main.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/profanity.1 b/docs/profanity.1
index f2a85314..1f4a61b7 100644
--- a/docs/profanity.1
+++ b/docs/profanity.1
@@ -20,6 +20,9 @@ Show version information.
 .BI "\-h, \-\-help"
 Show help on command line arguments.
 .TP
+.BI "\-a, \-\-account"
+Auto connect to an account on startup.
+.TP
 .BI "\-d, \-\-disable-tls"
 Disable TLS for servers that either don't support it, or claim to but do not
 complete the handshake.
diff --git a/src/main.c b/src/main.c
index 25eef65e..5c95a994 100644
--- a/src/main.c
+++ b/src/main.c
@@ -69,7 +69,7 @@ main(int argc, char **argv)
     {
         { "version", 'v', 0, G_OPTION_ARG_NONE, &version, "Show version information", NULL },
         { "disable-tls", 'd', 0, G_OPTION_ARG_NONE, &disable_tls, "Disable TLS", NULL },
-        { "account", 'a', 0, G_OPTION_ARG_STRING, &account_name, "Auto connect to an account on start-up" },
+        { "account", 'a', 0, G_OPTION_ARG_STRING, &account_name, "Auto connect to an account on startup" },
         { "log",'l', 0, G_OPTION_ARG_STRING, &log, "Set logging levels, DEBUG, INFO (default), WARN, ERROR", "LEVEL" },
         { NULL }
     };