From 54c5ab76a94bebc647cb0d80652f8d9980a2fa4d Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 30 Apr 2018 08:53:01 -0400 Subject: [PATCH] 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 --- man/ostree.xml | 16 ++++++++-------- src/ostree/ot-main.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/man/ostree.xml b/man/ostree.xml index 8a79cd04..f8d3e2fc 100644 --- a/man/ostree.xml +++ b/man/ostree.xml @@ -111,14 +111,14 @@ Boston, MA 02111-1307, USA. - For most commands, - when run as non-root, repository is - required. If - ostree is run as - root, it is assumed operations will be - performed on the - /sysroot/ostree/repo - repository. + For most commands, a repository is + required. If unspecified, the current + directory is used if it appears to be an + OSTree repository. If it isn't, either + the OSTREE_REPO + environment variable is used, or the + system repository located at + /sysroot/ostree/repo. diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c index 237427a2..148c8371 100644 --- a/src/ostree/ot-main.c +++ b/src/ostree/ot-main.c @@ -46,7 +46,7 @@ static GOptionEntry global_entries[] = { }; 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 } };