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 3b5a5e38ff7a3e86d910c9d64d98db3a52c7bc45)
@@ -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.
