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)  

args.cpp File Reference
#include <ucommon/ucommon.h>
Include dependency graph for args.cpp:

Go to the source code of this file.

Functions

static void output (bool middle, const char *arg)
 
static void dirpath (bool middle, String path, bool top=true)
 
int main (int argc, char **argv)
 

Variables

static shell::flagopt helpflag ('h',"--help", _TEXT("display this list"))
 
static shell::flagopt althelp ('?', NULL, NULL)
 
static shell::charopt delim ('d', "--delim", _TEXT("set deliminter between arguments"))
 
static shell::flagopt directory ('D', "--directory", _TEXT("expand directory into file arguments"))
 
static shell::flagopt lines ('l', "--lines", _TEXT("list arguments on separate lines"))
 
static shell::stringopt quote ('q', "--quote", _TEXT("set quote for each argument"), "string", "")
 
static shell::flagopt recursive ('R', "--recursive", _TEXT("recursive directory scan"))
 
static shell::flagopt follow ('F', "--follow", _TEXT("follow symlinks"))
 
static shell::flagopt rflag ('r', "--reverse", _TEXT("reverse order of arguments"))
 
static char prefix [80] = {0, 0}
 
static char suffix [80] = {0, 0}
 

Function Documentation

◆ dirpath()

static void dirpath ( bool  middle,
String  path,
bool  top = true 
)
static

◆ main()

◆ output()

static void output ( bool  middle,
const char *  arg 
)
static

Definition at line 36 of file args.cpp.

References delim, ucommon::is(), lines, prefix, and suffix.

Referenced by dirpath(), and main().

Variable Documentation

◆ althelp

shell::flagopt althelp('?', NULL, NULL)
static

Referenced by main().

◆ delim

shell::charopt delim( 'd', "--delim", _TEXT("set deliminter between arguments"))
static

◆ directory

shell::flagopt directory( 'D', "--directory", _TEXT("expand directory into file arguments"))
static

Referenced by main().

◆ follow

shell::flagopt follow( 'F', "--follow", _TEXT("follow symlinks"))
static

Referenced by dirpath(), and main().

◆ helpflag

shell::flagopt helpflag( 'h',"--help", _TEXT("display this list"))
static

Referenced by main().

◆ lines

shell::flagopt lines( 'l', "--lines", _TEXT("list arguments on separate lines"))
static

Referenced by main(), and output().

◆ prefix

◆ quote

shell::stringopt quote( 'q', "--quote", _TEXT("set quote for each argument"), "string", "")
static

◆ recursive

shell::flagopt recursive( 'R', "--recursive", _TEXT("recursive directory scan"))
static

Referenced by dirpath(), and main().

◆ rflag

shell::flagopt rflag( 'r', "--reverse", _TEXT("reverse order of arguments"))
static

Referenced by main().

◆ suffix

char suffix[80] = {0, 0}
static

Definition at line 34 of file args.cpp.

Referenced by ucommon::StringPager::join(), main(), output(), and ucommon::str().