diff options
author | Ruixin Bao <peter.bao@mail.utoronto.ca> | 2017-10-13 16:15:13 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-10-20 12:59:32 +0000 |
commit | 3c360a720ff1a8bf695365a79b3ac7975ffd25e8 (patch) | |
tree | f62cf412aebb3719e0760ba696e8a224e4bfe986 /src/ostree/ot-main.h | |
parent | 2531d8fe631b8484b5731f3635314ac3eb82eed5 (diff) | |
download | ostree-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.h | 1 |
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); |