Skip to content
options.hh 394 B
Newer Older
Seblu's avatar
Seblu committed
#ifndef OPTIONS_HH
# define OPTIONS_HH

struct Options {
  Options();

  Options &load(int argc, char *argv[]);
  Options &loadenv();

Seblu's avatar
Seblu committed
  void usage(const char *name, ostream &out) const;

  friend ostream &operator<<(ostream &, const Options &);

  string server;
  int port; //-1 undef
  string login;
  string pass;
  string history_file;
  size_t history_size;
  size_t log_size;
Seblu's avatar
Seblu committed
};

#endif