Prohibit use of positional args with --import

I took the liberty of combining related checks together
so as to avoid a little duplication; if this is not a
Go best practice, I will revert. I also made a minor
wording adjustment to an error message for clarity.

Also: update wording of man page.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago
2019-06-11 05:55:16 -06:00
parent bd0582dd34
commit 9f49c1af46
2 changed files with 10 additions and 5 deletions

View File

@ -45,8 +45,8 @@ connections.
**--import, -i**
Import a checkpoint tar.gz file, which was exported by Podman. This can be used
to import a checkpointed container from another host. It is not necessary to specify
a container when restoring from an exported checkpoint.
to import a checkpointed container from another host. Do not specify a *container*
argument when using this option.
**--name, -n**