Index: uspace/lib/c/generic/arg_parse.c
===================================================================
--- uspace/lib/c/generic/arg_parse.c	(revision 2721a75a80b078ca942208aff692e091cec7496b)
+++ uspace/lib/c/generic/arg_parse.c	(revision 1a2227dd48e5aa6c8c9a405d3d2af5380b443736)
@@ -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.
