Go to the source code of this file.
|
static void | output (bool middle, const char *arg) |
|
static void | dirpath (bool middle, String path, bool top=true) |
|
int | main (int argc, char **argv) |
|
|
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} |
|
◆ dirpath()
static void dirpath |
( |
bool |
middle, |
|
|
String |
path, |
|
|
bool |
top = true |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 73 of file args.cpp.
References ucommon::_TEXT(), althelp, ucommon::shell::bind(), directory, dirpath(), follow, ucommon::shell::help(), helpflag, ucommon::is(), ucommon::fsys::is_dir(), lines, output(), prefix, quote, recursive, rflag, ucommon::String::set(), and suffix.
◆ output()
static void output |
( |
bool |
middle, |
|
|
const char * |
arg |
|
) |
| |
|
static |
◆ althelp
◆ 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 |
◆ follow
◆ helpflag
◆ lines
shell::flagopt lines( 'l', "--lines", _TEXT("list arguments on separate lines")) |
|
static |
◆ prefix
Definition at line 33 of file args.cpp.
Referenced by ost::DirTree::DirTree(), ost::Dir::getPrefix(), ucommon::StringPager::join(), main(), ost::DirTree::open(), output(), ucommon::shell::path(), ost::DirTree::perform(), scan(), ucommon::shell::set0(), ost::Dir::setPrefix(), and ucommon::str().
◆ quote
shell::stringopt quote( 'q', "--quote", _TEXT("set quote for each argument"), "string", "") |
|
static |
◆ recursive
◆ rflag
shell::flagopt rflag( 'r', "--reverse", _TEXT("reverse order of arguments")) |
|
static |
◆ suffix