43 ERROR(
"invalid sleep time `" <<
arguments().get(
"SECONDS") <<
"'");
const ArgumentContainer & arguments() const
Get program arguments.
ArgumentParser & parser()
Get program arguments parser.
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 ~Sleep()
Destructor.
virtual Result exec()
Execute the application.
Sleep(int argc, char **argv)
Constructor.
C int atoi(const char *nptr)
Convert a string to an integer.
C unsigned int sleep(unsigned int seconds)
Sleep for the specified number of seconds.
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.