Welcome to little lamb

Code » anopa » commit 2b89c3b

status: Rename -l to -L for --list

author Olivier Brunel
2015-07-15 17:04:29 UTC
committer Olivier Brunel
2015-07-15 17:05:41 UTC
parent 9cc651065c79c0f48728241607c9acb10925a006

status: Rename -l to -L for --list

(Because we'll want to use -l for --listdir, for consistency.)

doc/aa-status.pod +2 -2
src/anopa/aa-status.c +4 -4

diff --git a/doc/aa-status.pod b/doc/aa-status.pod
index 010a78a..0edb910 100644
--- a/doc/aa-status.pod
+++ b/doc/aa-status.pod
@@ -4,7 +4,7 @@ aa-status - Show status of services
 
 =head1 SYNOPSIS
 
-B<aa-status> [B<-D>] [B<-r> I<repodir>] [B<-a>] [B<-l>] [I<service...>]
+B<aa-status> [B<-D>] [B<-r> I<repodir>] [B<-a>] [B<-L>] [I<service...>]
 
 =head1 OPTIONS
 
@@ -26,7 +26,7 @@ shown on console and logged.
 
 Show help screen and exit.
 
-=item B<-l, --list>
+=item B<-L, --list>
 
 Show statuses as a list, with one service per line, elipsizing service name
 and/or status if needed.
diff --git a/src/anopa/aa-status.c b/src/anopa/aa-status.c
index 76591cf..0dfda1b 100644
--- a/src/anopa/aa-status.c
+++ b/src/anopa/aa-status.c
@@ -569,7 +569,7 @@ dieusage (int rc)
             " -D, --double-output           Enable double-output mode\n"
             " -r, --repodir DIR             Use DIR as repository directory\n"
             " -a, --all                     Show status of all services\n"
-            " -l, --list                    Show statuses as one-liners list\n"
+            " -L, --list                    Show statuses as one-liners list\n"
             " -h, --help                    Show this help screen and exit\n"
             " -V, --version                 Show version information and exit\n"
             );
@@ -592,14 +592,14 @@ main (int argc, char * const argv[])
             { "all",                no_argument,        NULL,   'a' },
             { "double-output",      no_argument,        NULL,   'D' },
             { "help",               no_argument,        NULL,   'h' },
-            { "list",               no_argument,        NULL,   'l' },
+            { "list",               no_argument,        NULL,   'L' },
             { "repodir",            required_argument,  NULL,   'r' },
             { "version",            no_argument,        NULL,   'V' },
             { NULL, 0, 0, 0 }
         };
         int c;
 
-        c = getopt_long (argc, argv, "aDhlr:V", longopts, NULL);
+        c = getopt_long (argc, argv, "aDhLr:V", longopts, NULL);
         if (c == -1)
             break;
         switch (c)
@@ -615,7 +615,7 @@ main (int argc, char * const argv[])
             case 'h':
                 dieusage (0);
 
-            case 'l':
+            case 'L':
                 cfg.mode_list = 1;
                 break;