From 3729572b4b198c61642540afdf278244e2bd5f29 Mon Sep 17 00:00:00 2001 From: "Serge E. Hallyn" Date: Tue, 9 Aug 2011 16:51:01 +0200 Subject: [PATCH] lxc-ps: support '-n name' and '-- ps-options' This is more consistent with other lxc commands Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/820720 Signed-off-by: Daniel Lezcano --- src/lxc/lxc-ps.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lxc/lxc-ps.in b/src/lxc/lxc-ps.in index 7b3c8ab36..dd3b7fe39 100755 --- a/src/lxc/lxc-ps.in +++ b/src/lxc/lxc-ps.in @@ -134,7 +134,7 @@ sub display_headers { sub display_usage { print < \$arg_help, if ($arg_help) {display_help; exit 0;} if ($arg_usage) {display_usage; exit 0;} +if ($ARGV[0] == '--') { + shift @ARGV; +} + # Should we filter processes related to containers if ($arg_lxc) { $LXC_DISPLAY = 1; -- 2.47.2