diff --git a/src/lxc/lxc-netstat.in b/src/lxc/lxc-netstat.in index 367568c2e..4abe25f82 100644 --- a/src/lxc/lxc-netstat.in +++ b/src/lxc/lxc-netstat.in @@ -67,19 +67,8 @@ get_parent_cgroup() done } -shortoptions='hn:' -longoptions='help,name:,exec' - -getopt=$(getopt -o $shortoptions --longoptions $longoptions -- "$@") -if [ $? != 0 ]; then - usage - exit 1; -fi - exec="" -eval set -- "$getopt" - while true; do case $1 in -h|--help) @@ -91,7 +80,7 @@ while true; do --) shift; break;; *) - break; + break;; esac done