summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--support/popt-gnome.h1
-rw-r--r--support/popt.c4
-rw-r--r--support/popt.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/support/popt-gnome.h b/support/popt-gnome.h
index 64c7b806..a759f219 100644
--- a/support/popt-gnome.h
+++ b/support/popt-gnome.h
@@ -95,5 +95,6 @@ void poptSetExecPath(poptContext con, const char * path, int allowAbsolute);
void poptPrintHelp(poptContext con, FILE * f, int flags);
void poptPrintUsage(poptContext con, FILE * f, int flags);
void poptSetOtherOptionHelp(poptContext con, const char * text);
+const char * poptGetInvocationName(poptContext con);
#endif
diff --git a/support/popt.c b/support/popt.c
index be9a1810..22d5e089 100644
--- a/support/popt.c
+++ b/support/popt.c
@@ -543,3 +543,7 @@ int poptStuffArgs(poptContext con, char ** argv) {
return 0;
}
+
+const char * poptGetInvocationName(poptContext con) {
+ return con->os->argv[0];
+}
diff --git a/support/popt.h b/support/popt.h
index 64c7b806..a759f219 100644
--- a/support/popt.h
+++ b/support/popt.h
@@ -95,5 +95,6 @@ void poptSetExecPath(poptContext con, const char * path, int allowAbsolute);
void poptPrintHelp(poptContext con, FILE * f, int flags);
void poptPrintUsage(poptContext con, FILE * f, int flags);
void poptSetOtherOptionHelp(poptContext con, const char * text);
+const char * poptGetInvocationName(poptContext con);
#endif