aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-11 20:40:59 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-11 20:40:59 +0000
commit894d38730fb4153d280fa989517082d300033fc4 (patch)
treed49bc0b0b60b6b8cfe3e93868810efa0f1144f8e /src
parent6adc823b4ecd0bd95d56479188665b92d7e07fbf (diff)
downloadimv-894d38730fb4153d280fa989517082d300033fc4.tar.gz
Print version information in help
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a7b115c..571e476 100644
--- a/src/main.c
+++ b/src/main.c
@@ -37,6 +37,7 @@ struct {
void print_usage(const char* name)
{
fprintf(stdout,
+ "imv %s\n"
"Usage: %s [-ifsh] [images...]\n"
"\n"
"Flags:\n"
@@ -67,7 +68,7 @@ void print_usage(const char* name)
" 'f': Toggle fullscreen\n"
" ' ': Toggle gif playback\n"
" '.': Step a frame of gif playback\n"
- ,name);
+ , IMV_VERSION, name);
}
void parse_arg(const char* name, const char* arg)