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