ucommon
7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc.. Fossies Dox: ucommon-7.0.0.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 36 static void output(
bool middle,
const char *arg)
73 int main(
int argc,
char **argv)
80 shell args(argc, argv);
83 printf(
"%s\n",
_TEXT(
"Usage: args [options] arguments..."));
84 printf(
"%s\n\n",
_TEXT(
"Echo command line arguments"));
85 printf(
"%s\n",
_TEXT(
"Options:"));
87 printf(
"\n%s\n",
_TEXT(
"Report bugs to dyfet@gnu.org"));
103 else if(
quote[0] ==
'<') {
107 else if(
quote[0] ==
'(') {
109 ep = strchr((
char *)*
quote,
')');
126 output(middle, args[count]);
130 else while(count < args()) {
134 output(middle, args[count++]);
static shell::charopt delim('d', "--delim", _TEXT("set deliminter between arguments"))
static shell::flagopt helpflag('h',"--help", _TEXT("display this list"))
static shell::flagopt lines('l', "--lines", _TEXT("list arguments on separate lines"))
static shell::flagopt directory('D', "--directory", _TEXT("expand directory into file arguments"))
int main(int argc, char **argv)
static shell::flagopt recursive('R', "--recursive", _TEXT("recursive directory scan"))
static void bind(const char *name)
static bool is_link(const char *path)
static shell::stringopt quote('q', "--quote", _TEXT("set quote for each argument"), "string", "")
static shell::flagopt rflag('r', "--reverse", _TEXT("reverse order of arguments"))
void set(const char *text)
static shell::flagopt follow('F', "--follow", _TEXT("follow symlinks"))
static bool is_dir(const char *path)
static void dirpath(bool middle, String path, bool top=true)
static void output(bool middle, const char *arg)
ssize_t read(char *buffer, size_t count)
static shell::flagopt althelp('?', NULL, NULL)
const char * _TEXT(const char *s)