diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-30 10:07:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-03-26 12:17:28 -0400 |
commit | ac72ecd5813e878e223df48556a43061e0d0068c (patch) | |
tree | e3927a4cdf867d7f545306b9818d213d3af2351f /src/app/config/config.c | |
parent | 8f49943459564a59ca7f60476aef6b0ddd79a56c (diff) | |
download | tor-ac72ecd5813e878e223df48556a43061e0d0068c.tar.gz tor-ac72ecd5813e878e223df48556a43061e0d0068c.zip |
Add --dbg-dump-subsystem-list command to list the subsystems.
I'm prefixing this with --dbg-* because it is not meant to be used
externally.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 4becae4756..0ae650eb08 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -2498,6 +2498,9 @@ static const struct { .command=CMD_IMMEDIATE }, { .name="--nt-service" }, { .name="-nt-service" }, + { .name="--dbg-dump-subsystem-list", + .command=CMD_IMMEDIATE, + .quiet=QUIET_HUSH }, { .name=NULL }, }; @@ -4604,6 +4607,10 @@ options_init_from_torrc(int argc, char **argv) list_deprecated_options(); return 1; } + if (config_line_find(cmdline_only_options, "--dbg-dump-subsystem-list")) { + subsystems_dump_list(); + return 1; + } if (config_line_find(cmdline_only_options, "--version")) { printf("Tor version %s.\n",get_version()); |