lib:cmdline: Add a --configfile only parser for ntlm_auth
[samba.git] / lib / cmdline / cmdline.h
index 8fe746055c8cce516e59a297812bfee810fd19c9..47c3fe2953fac864f183d45fbbbc8ac3de93fc30 100644 (file)
@@ -41,6 +41,7 @@ enum samba_cmdline_config_type {
 enum smb_cmdline_popt_options {
        SAMBA_CMDLINE_POPT_OPT_DEBUG_ONLY = 1,
        SAMBA_CMDLINE_POPT_OPT_OPTION_ONLY,
+       SAMBA_CMDLINE_POPT_OPT_CONFIG_ONLY,
        SAMBA_CMDLINE_POPT_OPT_SAMBA,
        SAMBA_CMDLINE_POPT_OPT_CONNECTION,
        SAMBA_CMDLINE_POPT_OPT_CREDENTIALS,
@@ -166,6 +167,18 @@ poptContext samba_popt_get_context(const char * name,
        .descrip    = "Options:", \
        .argDescrip = NULL },
 
+/**
+ * @brief A popt structure for --configfile only.
+ */
+#define POPT_COMMON_CONFIG_ONLY { \
+       .longName   = NULL, \
+       .shortName  = '\0', \
+       .argInfo    = POPT_ARG_INCLUDE_TABLE, \
+       .arg        = samba_cmdline_get_popt(SAMBA_CMDLINE_POPT_OPT_CONFIG_ONLY), \
+       .val        = 0, \
+       .descrip    = "Config file:", \
+       .argDescrip = NULL },
+
 /**
  * @brief A popt structure for common samba options.
  */