chiark / gitweb /
hostnamectl: H requires an argument, P is no longer used
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 4 Nov 2013 16:32:50 +0000 (17:32 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 4 Nov 2013 16:32:50 +0000 (17:32 +0100)
src/hostname/hostnamectl.c

index 7591d99..8d8dc3d 100644 (file)
@@ -327,7 +327,7 @@ static int parse_argv(int argc, char *argv[]) {
         assert(argc >= 0);
         assert(argv);
 
-        while ((c = getopt_long(argc, argv, "hHM:P", options, NULL)) >= 0) {
+        while ((c = getopt_long(argc, argv, "hH:M:", options, NULL)) >= 0) {
 
                 switch (c) {