]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Document takes_argument_t and its members.
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Oct 2019 14:50:53 +0000 (10:50 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Oct 2019 16:59:22 +0000 (12:59 -0400)
src/app/config/config.c

index 561fc654565a45458c87e640f9e8801f63a76626..44d6a82e56dac5993ea72dd70276716097f8748f 100644 (file)
@@ -2447,9 +2447,15 @@ options_act(const or_options_t *old_options)
   return 0;
 }
 
+/**
+ * Enumeration to describe the syntax for a command-line option.
+ **/
 typedef enum {
+  /** Describe an option that does not take an argument. */
   ARGUMENT_NONE = 0,
+  /** Describes an option that takes a single argument. */
   ARGUMENT_NECESSARY = 1,
+  /** Describes an option that takes a single optinal argument. */
   ARGUMENT_OPTIONAL = 2
 } takes_argument_t;