blob: 227adcbfb8aa10770cc139e12f0c21a7017a999e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// cmdline_search.h -*-c++-*-
//
// Copyright 2004 Daniel Burrows
#ifndef CMDLINE_SEARCH_H
#define CMDLINE_SEARCH_H
#include <string>
/** \file cmdline_search.h
*/
/** \brief Invoke the "search" and "versions" command-line actions.
*
* \param argc The number of entries in argv.
*
* \param argv The command-line arguments not parsed by main().
*
* \param status_fname If non-NULL, a file-name from which to read status
* information.
*
* \param display_format A string describing the columns to use in displaying
* results.
*
* \param width The width to use in formatting results.
*
* \param sort A string describing how to sort results, using the
* same syntax as the curses frontend.
*
* \param disable_columns \b true to disable columnar formatting and simply
* separate fields with whitespace.
*
* \param debug \b true to print debugging information to stdout.
* \todo Should be handled by the logging subsystem.
*/
int cmdline_search(int argc, char *argv[], const char *status_fname,
std::string display_format, std::string width, std::string sort,
bool disable_columns, bool debug);
#endif // CMDLINE_SEARCH_H
|