commit 6cea2bd498b15aac14b884916b7dffa76f0547b7
Author: Nick Mathewson <ni...@torproject.org>
Date:   Tue Oct 8 10:50:53 2019 -0400

    Document takes_argument_t and its members.
---
 src/app/config/config.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/app/config/config.c b/src/app/config/config.c
index 561fc6545..44d6a82e5 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -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;
 



_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to