59 "usage: fstest [-d] [-m] [-p] path [path ...]" "\n" 60 " or: fstest --help|-h" "\n" 89 cerr << usage_text << endl;
97 if (cmdline.optset(0))
99 cerr << usage_text << endl;
100 cerr << help_text << endl;
107 opt.
mkdir=cmdline.optset(3);
108 opt.
mkdirp=cmdline.optset(4);
129 while (cmdline.extra())
131 std::string path=cmdline.next();
132 cout <<
"\nnext on command line:\n" << path << endl;
141 cout <<
"create directory " << path << endl;
147 cout <<
"create directory path " << path << endl;
std::string dirname(const std::string &path)
return path with its last non-slash component removed
Namespace containing all components of module commandline. ,.
Evaluates commandline by calling long_getopt. ,You may instantiate a Commandline object by passing th...
struct to define options ,This struct is used to define a list of options. An example is: ...
void mkdirp(const std::string &path)
create a directory with all parents
void mkdir(const std::string &path)
create a directory