]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-ls: Add -f and -F as aliases
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 16 Jan 2014 18:42:22 +0000 (13:42 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 16 Jan 2014 20:45:02 +0000 (15:45 -0500)
Alias -f to --fancy and -F to --fancy-format.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
doc/lxc-ls.sgml.in
src/lxc/lxc-ls

index e320c7adf470f870ec57b9d0c4410f922b2178b1..37e356c476875204df4dda8e375dd8c7b949c931 100644 (file)
@@ -54,8 +54,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
       <arg choice="opt">--frozen</arg>
       <arg choice="opt">--running</arg>
       <arg choice="opt">--stopped</arg>
-      <arg choice="opt">--fancy</arg>
-      <arg choice="opt">--fancy-format</arg>
+      <arg choice="opt">-f</arg>
+      <arg choice="opt">-F <replaceable>format</replaceable></arg>
       <arg choice="opt">--nesting</arg>
       <arg choice="opt">filter</arg>
     </cmdsynopsis>
@@ -129,7 +129,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
       <varlistentry>
         <term>
-          <option><optional>--fancy</optional></option>
+          <option><optional>-f, --fancy</optional></option>
         </term>
         <listitem>
           <para>
@@ -140,7 +140,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
       <varlistentry>
         <term>
-          <option><optional>--fancy-format</optional></option>
+          <option><optional>-F, --fancy-format <replaceable>format</replaceable></optional></option>
         </term>
         <listitem>
           <para>
index b2eea2a10e4c0580d6e3d8663b27f1ee25aa3dfe..1ed7da4fbe60b1664ea903d66f0585b1aa96d9a2 100755 (executable)
@@ -136,10 +136,10 @@ parser.add_argument("--running", dest="state", action="append_const",
 parser.add_argument("--stopped", dest="state", action="append_const",
                     const="STOPPED", help=_("list only stopped containers"))
 
-parser.add_argument("--fancy", action="store_true",
+parser.add_argument("-f", "--fancy", action="store_true",
                     help=_("use fancy output"))
 
-parser.add_argument("--fancy-format", type=str,
+parser.add_argument("-F", "--fancy-format", type=str,
                     default="name,state,ipv4,ipv6,autostart",
                     help=_("comma separated list of fields to show"))