diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,8 @@ #include "aports-cache.h" +static char *program_invocation_name; + static void usage(int exitcode) { printf("usage %s [OPTS] DIR\n" @@ -40,6 +42,8 @@ int main(int argc, char *argv[]) int dirfd, rc; char *shell_argv[] = {"/bin/sh", NULL}; + program_invocation_name = argv[0]; + while ((c = getopt_long(argc, argv, "fs:v", opts, &i)) != -1) { switch(c) { |