From c529b3f8f1d882b29c6b505de1a61d24c6a0943c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 8 Oct 2019 16:05:04 -0400 Subject: Make the command-line parser understand "commands". Previously these were implemented with a search in options_init_from_torrc(), but that led to each option being declared more than needed: once to say that it was a valid option, and once to say what it meant. --- src/app/main/ntmain.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/app/main/ntmain.c') diff --git a/src/app/main/ntmain.c b/src/app/main/ntmain.c index a2de5bb87e..16dc72acc5 100644 --- a/src/app/main/ntmain.c +++ b/src/app/main/ntmain.c @@ -340,6 +340,7 @@ nt_service_main(void) "or --key-expiration) in NT service."); break; case CMD_RUN_UNITTESTS: + case CMD_OTHER: default: log_err(LD_CONFIG, "Illegal command number %d: internal error.", get_options()->command); -- cgit v1.2.3-54-g00ecf