Index: uspace/lib/c/generic/arg_parse.c
===================================================================
--- uspace/lib/c/generic/arg_parse.c	(revision 88dea9d01a9bc5e8482c1ceafa6e6531ac50cb4f)
+++ uspace/lib/c/generic/arg_parse.c	(revision d8e3467358e76057c47d6b02a28d442a944676e6)
@@ -34,4 +34,15 @@
 #include <errno.h>
 #include <str.h>
+
+int arg_parse_short_long(const char *arg, const char *ashort, const char *along)
+{
+	if (str_cmp(arg, ashort) == 0)
+		return 0;
+	
+	if (str_lcmp(arg, along, str_length(along)) == 0)
+		return str_length(along);
+	
+	return -1;
+}
 
 /** Parse the next argument as an integer.
