Skip to content

Commit

Permalink
Rename account-key -> api-key
Browse files Browse the repository at this point in the history
  • Loading branch information
nviennot committed Nov 11, 2019
1 parent 9fe8b32 commit f895fe0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion options-table.c
Expand Up @@ -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 = ""
Expand Down
8 changes: 4 additions & 4 deletions tmux.c
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f895fe0

Please sign in to comment.