summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Viennot <nicolas@viennot.biz>2019-11-10 22:27:23 -0500
committerNicolas Viennot <nicolas@viennot.biz>2019-11-10 22:27:23 -0500
commitf895fe01b1ddd0f0dbd0d019c5f290c7650b7d3b (patch)
tree532e32390840c3e34fafa02d45bc5a0392c3defc
parent9fe8b32293982bb85eb12b9c55991b6fa0dac400 (diff)
Rename account-key -> api-key
-rw-r--r--options-table.c2
-rw-r--r--tmux.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/options-table.c b/options-table.c
index 4a20c548..e3362ba8 100644
--- a/options-table.c
+++ b/options-table.c
@@ -960,7 +960,7 @@ const struct options_table_entry options_table[] = {
.default_str = ""
},
- { .name = "tmate-account-key",
+ { .name = "tmate-api-key",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_SERVER,
.default_str = ""
diff --git a/tmux.c b/tmux.c
index b6b03346..53b984d7 100644
--- a/tmux.c
+++ b/tmux.c
@@ -64,7 +64,7 @@ usage(void)
"Basic options:\n"
" -n <name> specify the session token instead of getting a random one\n"
" -r <name> same, but for the read-only token\n"
- " -k <key> specify the account-key, necessary for named sessions on tmate.io\n"
+ " -k <key> specify an api-key, necessary for using named sessions on tmate.io\n"
" -F set the foreground mode, useful for setting remote access\n"
" -f <path> set the config file path\n"
" -S <path> set the socket path, useful to issue commands to a running tmate instance\n"
@@ -212,7 +212,7 @@ find_home(void)
}
#ifdef TMATE
-static char *account_key;
+static char *api_key;
static char *session_name;
static char *session_name_ro;
static char *authorized_keys;
@@ -226,7 +226,7 @@ void tmate_load_cli_options(void)
val = NULL; \
} \
})
- SET_OPT("tmate-account-key", account_key);
+ SET_OPT("tmate-api-key", api_key);
SET_OPT("tmate-session-name", session_name);
SET_OPT("tmate-session-name-ro", session_name_ro);
SET_OPT("tmate-authorized-keys", authorized_keys);
@@ -310,7 +310,7 @@ main(int argc, char **argv)
unsetenv("TMUX");
break;
case 'k':
- account_key = xstrdup(optarg);
+ api_key = xstrdup(optarg);
break;
case 'n':
session_name = xstrdup(optarg);