summaryrefslogtreecommitdiff
path: root/src/ostree/ot-main.h
diff options
context:
space:
mode:
authorRuixin Bao <peter.bao@mail.utoronto.ca>2017-10-13 16:15:13 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2017-10-20 12:59:32 +0000
commit3c360a720ff1a8bf695365a79b3ac7975ffd25e8 (patch)
treef62cf412aebb3719e0760ba696e8a224e4bfe986 /src/ostree/ot-main.h
parent2531d8fe631b8484b5731f3635314ac3eb82eed5 (diff)
downloadostree-3c360a720ff1a8bf695365a79b3ac7975ffd25e8.tar.gz
ostree: Describe subcommands in help output
Added a description argument to all type of commands. Now when we include -h or --help for commands that contain subcommands, the description for those subcommands are shown. The added subcommands help will be provided to the following commands: - ostree -h - ostree admin -h - ostree admin instutil -h - ostree remote -h - ostree static-delta -h Closes: #1267 Approved by: cgwalters
Diffstat (limited to 'src/ostree/ot-main.h')
-rw-r--r--src/ostree/ot-main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ostree/ot-main.h b/src/ostree/ot-main.h
index 11fc287e..d795e531 100644
--- a/src/ostree/ot-main.h
+++ b/src/ostree/ot-main.h
@@ -40,6 +40,7 @@ typedef enum {
typedef struct {
const char *name;
gboolean (*fn) (int argc, char **argv, GCancellable *cancellable, GError **error);
+ const char *description;
} OstreeCommand;
int ostree_run (int argc, char **argv, OstreeCommand *commands, GError **error);