Go to the documentation of this file.
43 ERROR(
"invalid sleep time `" <<
arguments().get(
"SECONDS") <<
"'");
C int errno
The lvalue errno is used by many functions to return error values.
virtual Result exec()
Execute the application.
C int atoi(const char *nptr)
Convert a string to an integer.
POSIX-compatible application.
const ArgumentContainer & arguments() const
Get program arguments.
void setDescription(const String &desc)
Set program description.
virtual ~Sleep()
Destructor.
unsigned int sleep(unsigned int seconds)
Sleep for the specified number of seconds.
char * strerror(int errnum)
The strerror function maps the number in errnum to a message string.
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.
Sleep(int argc, char **argv)
Constructor.