]> err.no Git - varnish/commitdiff
add min+max argument counts
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 16 Mar 2006 08:30:04 +0000 (08:30 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 16 Mar 2006 08:30:04 +0000 (08:30 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@53 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/include/cli.h

index 8c8ad2ff81cfd0691cde7c1f73774d2232bcd09c..0886a6de252a95eb3be386c4ab30b14b20b31762 100644 (file)
        "url.query",                                                    \
        "url.query <url>",                                              \
        "\tQuery the cache status of a specific URL.\n"                 \
-           "\tReturns the TTL, size and checksum of the object." 
+           "\tReturns the TTL, size and checksum of the object.",      \
+       1, 1
 
 #define CLI_URL_PURGE                                                  \
        "url.purge",                                                    \
        "url.purge <regexp>",                                           \
        "\tAll urls matching regexp will consider currently cached\n"   \
-           "\tobjects obsolete"
+           "\tobjects obsolete",                                       \
+       1, 1
 
 #define CLI_URL_STATUS                                                 \
        "url.status",                                                   \
        "url.status <url>",                                             \
-       "\tReturns all metadata for the specified URL"
+       "\tReturns all metadata for the specified URL",                 \
+       1, 1
 
 #define CLI_CONFIG_LOAD                                                        \
        "config.load",                                                  \
        "config.load <configname> <filename>",                          \
-       "\tCompile and load the VCL file under the name provided."
+       "\tCompile and load the VCL file under the name provided.",     \
+       2, 2
 
 #define CLI_CONFIG_INLINE                                              \
        "config.inline",                                                \
        "config.inline <configname> <quoted_VCLstring>",                \
-       "\tCompile and load the VCL data under the name provided." 
+       "\tCompile and load the VCL data under the name provided.",     \
+       2, 2
 
 #define CLI_CONFIG_UNLOAD                                              \
        "config.unload",                                                \
        "config.unload <configname>",                                   \
-       "\tUnload the named configuration (when possible)."
+       "\tUnload the named configuration (when possible).",            \
+       1, 1
 
 #define CLI_CONFIG_LIST                                                        \
        "config.list",                                                  \
        "config.list",                                                  \
-       "\tList all loaded configuration."
+       "\tList all loaded configuration.",                             \
+       0, 0
 
 #define CLI_CONFIG_USE                                                 \
        "config.use",                                                   \
        "config.use <configname>",                                      \
-       "\tSwitch to the named configuration immediately."
+       "\tSwitch to the named configuration immediately.",             \
+       1, 1
 
 #define CLI_SERVER_FREEZE                                              \
        "server.freeze",                                                \
        "server.freeze",                                                \
-       "\tStop the clock, freeze object store."
+       "\tStop the clock, freeze object store.",                       \
+       0, 0 
 
 #define CLI_SERVER_THAW                                                        \
        "thaw",                                                         \
        "thaw",                                                         \
-       "\tRestart the clock, unfreeze object store."
+       "\tRestart the clock, unfreeze object store.",                  \
+       0, 0
 
 #define CLI_SERVER_SUSPEND                                             \
        "suspend",                                                      \
        "suspend",                                                      \
-       "\tStop accepting requests."
+       "\tStop accepting requests.",                                   \
+       0, 0
 
 #define CLI_SERVER_RESUME                                              \
        "resume",                                                       \
        "resume",                                                       \
-       "\tAccept requests."
+       "\tAccept requests.",                                           \
+       0, 0
 
 #define CLI_SERVER_STOP                                                        \
        "stop",                                                         \
        "stop",                                                         \
-       "\tStop the Varnish cache process"
+       "\tStop the Varnish cache process",                             \
+       0, 0
 
 #define CLI_SERVER_START                                               \
        "start",                                                        \
        "start",                                                        \
-       "\tStart the Varnish cache process."
+       "\tStart the Varnish cache process.",                           \
+       0, 0
 
 #define CLI_SERVER_RESTART                                             \
        "restart",                                                      \
        "restart",                                                      \
-       "\tRestart the Varnish cache process."
+       "\tRestart the Varnish cache process.",                         \
+       0, 0
 
 #define CLI_PING                                                       \
        "ping",                                                         \
        "ping [timestamp]",                                             \
-       "\tKeep connection alive"
+       "\tKeep connection alive",                                      \
+       0, 1
 
 #define CLI_STATS                                                      \
        "stats",                                                        \
        "stats",                                                        \
-       "\tShow summary statistics"
+       "\tShow summary statistics",                                    \
+       0, 0
 
 #define CLI_ZERO                                                       \
        "zero",                                                         \
        "zero",                                                         \
-       "\tZero summary statistics"
+       "\tZero summary statistics",                                    \
+       0, 0
 
 #define CLI_HELP                                                       \
        "help",                                                         \
        "help [command]",                                               \
-       "\tShow command/protocol help"
+       "\tShow command/protocol help",                                 \
+       0, 1
 
 #define CLI_VERBOSE                                                    \
        "verbose",                                                      \
        "verbose",                                                      \
-       "\tEnable/Disable verbosity"
+       "\tEnable/Disable verbosity",                                   \
+       0, 0
 
 #define CLI_EXIT                                                       \
        "exit",                                                         \
        "exit",                                                         \
-       "\tClose connection"
+       "\tClose connection",                                           \
+       0, 0
 
 #define CLI_QUIT                                                       \
        "quit",                                                         \
        "quit",                                                         \
-       "\tClose connection"
+       "\tClose connection",                                           \
+       0, 0
 
 #define CLI_BYE                                                                \
        "bye",                                                          \
        "bye",                                                          \
-       "\tClose connection"
+       "\tClose connection",                                           \
+       0, 0
 
 enum cli_status_e {
        CLIS_SYNTAX     = 100,