48
48
svn_cl__opt_state_t *opt_state = NULL;
49
49
svn_stringbuf_t *version_footer = NULL;
50
const char *config_path;
51
/* xgettext: the %s is for SVN_VER_NUMBER. */
52
char help_header_template[] =
53
53
N_("usage: svn <subcommand> [options] [args]\n"
54
"Subversion command-line client, version %s.\n"
54
"Subversion command-line client.\n"
55
55
"Type 'svn help <subcommand>' for help on a specific subcommand.\n"
56
56
"Type 'svn --version' to see the program version and RA modules\n"
57
57
" or 'svn --version --quiet' to see just the version number.\n"
66
66
N_("Subversion is a tool for version control.\n"
67
67
"For additional information, see http://subversion.apache.org/\n");
70
apr_psprintf(pool, _(help_header_template), SVN_VER_NUMBER);
72
69
const char *ra_desc_start
73
70
= _("The following repository access (RA) modules are available:\n\n");
138
135
version_footer = svn_stringbuf_create(ra_desc_start, pool);
139
136
SVN_ERR(svn_ra_print_modules(version_footer, pool));
139
* Show auth creds storage providers.
141
SVN_ERR(svn_config_get_user_config_path(&config_path,
142
opt_state ? opt_state->config_dir
146
svn_stringbuf_appendcstr(version_footer,
147
_("\nThe following authentication credential caches are available:\n\n"));
149
/*### There is no API to query available providers at run time. */
150
#if (defined(WIN32) && !defined(__MINGW32__))
152
svn_stringbuf_create(apr_psprintf(pool, _("%s* Wincrypt cache in %s\n"),
153
version_footer->data,
154
svn_dirent_local_style(config_path,
157
#elif !defined(SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE)
159
svn_stringbuf_create(apr_psprintf(pool, _("%s* Plaintext cache in %s\n"),
160
version_footer->data,
161
svn_dirent_local_style(config_path,
165
#ifdef SVN_HAVE_GNOME_KEYRING
166
svn_stringbuf_appendcstr(version_footer, "* Gnome Keyring\n");
168
#ifdef SVN_HAVE_GPG_AGENT
169
svn_stringbuf_appendcstr(version_footer, "* GPG-Agent\n");
171
#ifdef SVN_HAVE_KEYCHAIN_SERVICES
172
svn_stringbuf_appendcstr(version_footer, "* Mac OS X Keychain\n");
174
#ifdef SVN_HAVE_KWALLET
175
svn_stringbuf_appendcstr(version_footer, "* KWallet (KDE)\n");
141
178
return svn_opt_print_help4(os,
142
179
"svn", /* ### erm, derive somehow? */
143
180
opt_state ? opt_state->version : FALSE,