Commit d1e20bf6 authored by Niels Möller's avatar Niels Möller
Browse files

Removed the short alias, -C, for the --subsystem

option.

Rev: src/client.c:1.139
parent e7d1d8b3
......@@ -411,6 +411,8 @@ make_client_session(struct client_options *options);
#define OPT_FORK_STDIO 0x213
#define OPT_SUBSYSTEM 0x214
void
init_client_options(struct client_options *self,
struct randomness *random,
......@@ -499,11 +501,13 @@ client_options[] =
{ "background", 'B', NULL, 0, "Put process into the background. Implies -N.", 0 },
{ "execute", 'E', "command", 0, "Execute a command on the remote machine", 0 },
{ "shell", 'S', "command", 0, "Spawn a remote shell", 0 },
{ "subsystem", 'OPT_SUBSYSTEM', "subsystem-name", 0,
#if WITH_PTY_SUPPORT
{ "subsystem", 'C', "subsystem-name", 0, "Connect to given subsystem. Implies --no-pty.", 0 },
"Connect to given subsystem. Implies --no-pty.",
#else
{ "subsystem", 'C', "subsystem-name", 0, "Connect to given subsystem.", 0 },
"Connect to given subsystem.",
#endif
0 },
/* { "gateway", 'G', NULL, 0, "Setup a local gateway", 0 }, */
{ NULL, 0, NULL, 0, "Universal not:", 0 },
{ "no", 'n', NULL, 0, "Inverts the effect of the next modifier", 0 },
......@@ -1160,10 +1164,12 @@ client_argp_parser(int key, char *arg, struct argp_state *state)
client_add_action(options, client_shell_session(options));
break;
case 'C':
case OPT_SUBSYSTEM:
client_add_action(options,
client_subsystem_session(options,
ssh_format("%lz", arg)));
options->start_shell = 0;
#if WITH_PTY_SUPPORT
options->with_pty = 0;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment