Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
c5afb6e4
Commit
c5afb6e4
authored
Jan 16, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-ls: Add -f and -F as aliases
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
>
parent
a5397327
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
lxc-ls.sgml.in
doc/lxc-ls.sgml.in
+4
-4
lxc-ls
src/lxc/lxc-ls
+2
-2
No files found.
doc/lxc-ls.sgml.in
View file @
c5afb6e4
...
@@ -54,8 +54,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
...
@@ -54,8 +54,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<arg choice="opt">--frozen</arg>
<arg choice="opt">--frozen</arg>
<arg choice="opt">--running</arg>
<arg choice="opt">--running</arg>
<arg choice="opt">--stopped</arg>
<arg choice="opt">--stopped</arg>
<arg choice="opt">-
-fancy
</arg>
<arg choice="opt">-
f
</arg>
<arg choice="opt">-
-fancy-format
</arg>
<arg choice="opt">-
F <replaceable>format</replaceable>
</arg>
<arg choice="opt">--nesting</arg>
<arg choice="opt">--nesting</arg>
<arg choice="opt">filter</arg>
<arg choice="opt">filter</arg>
</cmdsynopsis>
</cmdsynopsis>
...
@@ -129,7 +129,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
...
@@ -129,7 +129,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<varlistentry>
<varlistentry>
<term>
<term>
<option><optional>--fancy</optional></option>
<option><optional>-
f, -
-fancy</optional></option>
</term>
</term>
<listitem>
<listitem>
<para>
<para>
...
@@ -140,7 +140,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
...
@@ -140,7 +140,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<varlistentry>
<varlistentry>
<term>
<term>
<option><optional>-
-fancy-format
</optional></option>
<option><optional>-
F, --fancy-format <replaceable>format</replaceable>
</optional></option>
</term>
</term>
<listitem>
<listitem>
<para>
<para>
...
...
src/lxc/lxc-ls
View file @
c5afb6e4
...
@@ -136,10 +136,10 @@ parser.add_argument("--running", dest="state", action="append_const",
...
@@ -136,10 +136,10 @@ parser.add_argument("--running", dest="state", action="append_const",
parser
.
add_argument
(
"--stopped"
,
dest
=
"state"
,
action
=
"append_const"
,
parser
.
add_argument
(
"--stopped"
,
dest
=
"state"
,
action
=
"append_const"
,
const
=
"STOPPED"
,
help
=
_
(
"list only stopped containers"
))
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"
))
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"
,
default
=
"name,state,ipv4,ipv6,autostart"
,
help
=
_
(
"comma separated list of fields to show"
))
help
=
_
(
"comma separated list of fields to show"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment