diff options
author | Nicolas Viennot <nicolas@viennot.biz> | 2019-11-10 22:27:23 -0500 |
---|---|---|
committer | Nicolas Viennot <nicolas@viennot.biz> | 2019-11-10 22:27:23 -0500 |
commit | f895fe01b1ddd0f0dbd0d019c5f290c7650b7d3b (patch) | |
tree | 532e32390840c3e34fafa02d45bc5a0392c3defc | |
parent | 9fe8b32293982bb85eb12b9c55991b6fa0dac400 (diff) |
Rename account-key -> api-key
-rw-r--r-- | options-table.c | 2 | ||||
-rw-r--r-- | tmux.c | 8 |
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 = "" @@ -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); |