aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/tyq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/tyq.c')
-rw-r--r--src/bin/tyq.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/bin/tyq.c b/src/bin/tyq.c
index f78fcc0..2b6af4a 100644
--- a/src/bin/tyq.c
+++ b/src/bin/tyq.c
@@ -7,21 +7,30 @@
#include <Eina.h>
#include "tycommon.h"
+static void
+print_usage(const char* argv0)
+{
+ printf("Usage: %s FILE1 [FILE2 ...]\n"
+ " Queue a given media file/uri to the popped up\n"
+ HELP_ARGUMENT_DOC"\n"
+ "\n",
+ argv0);
+}
+
int
main(int argc, char **argv)
{
int i;
ON_NOT_RUNNING_IN_TERMINOLOGY_EXIT_1();
+ ARGUMENT_ENTRY_CHECK(argc, argv, print_usage);
if (argc <= 1)
{
- printf("Usage: %s FILE1 [FILE2 ...]\n"
- " Queue a given media file/uri to the popped up\n"
- "\n",
- argv[0]);
+ print_usage(argv[0]);
return 0;
}
+
for (i = 1; i < argc; i++)
{
char *path, buf[PATH_MAX * 2], tbuf[PATH_MAX * 3];