diff --git a/src/bin/multiuser/useradd.cpp b/src/bin/multiuser/useradd.cpp index 45220840a6..febe75a9bf 100644 --- a/src/bin/multiuser/useradd.cpp +++ b/src/bin/multiuser/useradd.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All Rights Reserved. + * Copyright 2008-2013, Ingo Weinhold, ingo_weinhold@gmx.de. * Distributed under the terms of the MIT License. */ @@ -30,9 +30,27 @@ extern const char *__progname; static const char* kUsage = -"Usage: %s [ -d ] [ -e ] [ -f ] [ -g ]\n" -" [ -s ] [ -n ]\n" -; + "Usage: %s [ ] \n" + "Creates a new user .\n" + "\n" + "Options:\n" + " -d \n" + " Specifies the home directory for the new user.\n" + " -e \n" + " Specifies the expiration date for the new user's account.\n" + " -f \n" + " Specifies the number of days after the expiration of the new user's " + "password\n" + " until the account expires.\n" + " -g \n" + " Specifies the new user's primary group by ID or name.\n" + " -h, --help\n" + " Print usage info.\n" + " -s \n" + " Specifies the new user's login shell.\n" + " -n \n" + " Specifies the new user's real name.\n" + ; static void print_usage_and_exit(bool error) @@ -84,6 +102,7 @@ main(int argc, const char* const* argv) case 'g': gid = atoi(optarg); +// TODO: Support name! break; case 'h':