[xiph-commits] r18898 - icecast/trunk/icecast/src
ph3-der-loewe at svn.xiph.org
ph3-der-loewe at svn.xiph.org
Tue Apr 2 04:48:40 PDT 2013
Author: ph3-der-loewe
Date: 2013-04-02 04:48:40 -0700 (Tue, 02 Apr 2013)
New Revision: 18898
Modified:
icecast/trunk/icecast/src/main.c
Log:
allow --version as alias to -v (printing version number)
Modified: icecast/trunk/icecast/src/main.c
===================================================================
--- icecast/trunk/icecast/src/main.c 2013-04-01 18:15:33 UTC (rev 18897)
+++ icecast/trunk/icecast/src/main.c 2013-04-02 11:48:40 UTC (rev 18898)
@@ -90,11 +90,12 @@
static void _print_usage(void)
{
printf("%s\n\n", ICECAST_VERSION_STRING);
- printf("usage: icecast [-b -v] -c <file>\n");
+ printf("usage: icecast [-b] -c <file>\n");
+ printf("or : icecast {-v|--version}\n");
printf("options:\n");
- printf("\t-c <file>\tSpecify configuration file\n");
- printf("\t-v\t\tDisplay version info\n");
- printf("\t-b\t\tRun icecast in the background\n");
+ printf("\t-c <file> Specify configuration file\n");
+ printf("\t-v or --version Display version info\n");
+ printf("\t-b Run icecast in the background\n");
printf("\n");
}
@@ -175,7 +176,7 @@
background = 1;
#endif
}
- if (strcmp(argv[i], "-v") == 0) {
+ if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--version") == 0) {
fprintf(stdout, "%s\n", ICECAST_VERSION_STRING);
exit(0);
}
More information about the commits
mailing list