Go to the documentation of this file.
43 for (
Size i = 0; i < positionals.
count(); i++)
45 const char *path = *(positionals[i]->getValue());
virtual ~Remove()
Destructor.
C int errno
The lvalue errno is used by many functions to return error values.
POSIX-compatible application.
const ArgumentContainer & arguments() const
Get program arguments.
void setDescription(const String &desc)
Set program description.
Remove(int argc, char **argv)
Constructor.
virtual Size count() const
Returns the number of items inside the Vector.
char * strerror(int errnum)
The strerror function maps the number in errnum to a message string.
unsigned int Size
Any sane size indicator cannot go negative.
int unlink(const char *path)
Remove a file from the filesystem.
Result registerPositional(const char *name, const char *description, Size count=1)
Register a positional argument.
ArgumentParser & parser()
Get program arguments parser.
#define ERROR(msg)
Output an error message.
virtual Result exec()
Execute the application.
const Vector< Argument * > & getPositionals() const
Get positional arguments.