man/ostree: Document --repo option a bit more

This new information is already mostly part of `ostree.repo(5)`, though
let's put it in `ostree(1)` as well since that's where the switch is
officially documented.

Closes: #1560
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2018-04-30 08:53:01 -04:00 committed by Atomic Bot
parent 8c1542134c
commit 54c5ab76a9
2 changed files with 9 additions and 9 deletions

View File

@ -111,14 +111,14 @@ Boston, MA 02111-1307, USA.
<term><option>--repo</option></term> <term><option>--repo</option></term>
<listitem><para> <listitem><para>
For most commands, For most commands, a repository is
when run as non-root, repository is required. If unspecified, the current
required. If directory is used if it appears to be an
<command>ostree</command> is run as OSTree repository. If it isn't, either
root, it is assumed operations will be the <envar>OSTREE_REPO</envar>
performed on the environment variable is used, or the
<filename>/sysroot/ostree/repo</filename> system repository located at
repository. <filename>/sysroot/ostree/repo</filename>.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>

View File

@ -46,7 +46,7 @@ static GOptionEntry global_entries[] = {
}; };
static GOptionEntry repo_entry[] = { static GOptionEntry repo_entry[] = {
{ "repo", 0, 0, G_OPTION_ARG_FILENAME, &opt_repo, "Path to OSTree repository (defaults to /sysroot/ostree/repo)", "PATH" }, { "repo", 0, 0, G_OPTION_ARG_FILENAME, &opt_repo, "Path to OSTree repository (defaults to current directory or /sysroot/ostree/repo)", "PATH" },
{ NULL } { NULL }
}; };