mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-26 12:18:45 +02:00
Make --namespace and --namespace-pid mutually exclusive.
This commit is contained in:
parent
389a12aeb5
commit
bd05a7276a
@ -471,12 +471,15 @@ parser.add_argument(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if sys.platform == 'linux':
|
if sys.platform == 'linux':
|
||||||
parser.add_argument(
|
net_ns_group = parser.add_mutually_exclusive_group(
|
||||||
|
required=False)
|
||||||
|
|
||||||
|
net_ns_group.add_argument(
|
||||||
'--namespace',
|
'--namespace',
|
||||||
type=parse_namespace,
|
type=parse_namespace,
|
||||||
help="Run inside of a net namespace with the given name."
|
help="Run inside of a net namespace with the given name."
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
net_ns_group.add_argument(
|
||||||
'--namespace-pid',
|
'--namespace-pid',
|
||||||
type=int,
|
type=int,
|
||||||
help="""
|
help="""
|
||||||
|
Loading…
Reference in New Issue
Block a user