summaryrefslogtreecommitdiff
path: root/cmd/podman/system/unshare.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-25 08:33:39 -0400
committerGitHub <noreply@github.com>2020-06-25 08:33:39 -0400
commitf8036c548c0a6d34cc063949cf5f9add22409d9d (patch)
tree48d84e34aee191cf803f14ef48df81b08eff271e /cmd/podman/system/unshare.go
parentcd36499d10a21ef1429d7ce84d845d8627ebcf6e (diff)
parentc6090c290e1eb8b60148a026773c5f8cce6eb435 (diff)
downloadpodman-f8036c548c0a6d34cc063949cf5f9add22409d9d.tar.gz
podman-f8036c548c0a6d34cc063949cf5f9add22409d9d.tar.bz2
podman-f8036c548c0a6d34cc063949cf5f9add22409d9d.zip
Merge pull request #6754 from edsantiago/man_page_xref
Docs: consistency between man / --help
Diffstat (limited to 'cmd/podman/system/unshare.go')
-rw-r--r--cmd/podman/system/unshare.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/podman/system/unshare.go b/cmd/podman/system/unshare.go
index e5d41e06d..109bab9ed 100644
--- a/cmd/podman/system/unshare.go
+++ b/cmd/podman/system/unshare.go
@@ -13,10 +13,11 @@ import (
var (
unshareDescription = "Runs a command in a modified user namespace."
unshareCommand = &cobra.Command{
- Use: "unshare [flags] [COMMAND [ARG ...]]",
- Short: "Run a command in a modified user namespace",
- Long: unshareDescription,
- RunE: unshare,
+ Use: "unshare [COMMAND [ARG ...]]",
+ DisableFlagsInUseLine: true,
+ Short: "Run a command in a modified user namespace",
+ Long: unshareDescription,
+ RunE: unshare,
Example: `podman unshare id
podman unshare cat /proc/self/uid_map,
podman unshare podman-script.sh`,