mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-25 11:48:40 +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':
|
||||
parser.add_argument(
|
||||
net_ns_group = parser.add_mutually_exclusive_group(
|
||||
required=False)
|
||||
|
||||
net_ns_group.add_argument(
|
||||
'--namespace',
|
||||
type=parse_namespace,
|
||||
help="Run inside of a net namespace with the given name."
|
||||
)
|
||||
parser.add_argument(
|
||||
net_ns_group.add_argument(
|
||||
'--namespace-pid',
|
||||
type=int,
|
||||
help="""
|
||||
|
Loading…
Reference in New Issue
Block a user