diff options
author | Guillem Jover <guillem@debian.org> | 2008-09-08 02:29:20 +0300 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2008-09-14 05:57:39 +0300 |
commit | 405accb78561ac2205b33627f2809a7f10e93ee6 (patch) | |
tree | fc28c01dfe5165fae91b549984f863eb5ba4968b /dpkg-split | |
parent | c47003c7b240b4f295e4555794835e6a0aeddfe0 (diff) | |
download | dpkg-405accb78561ac2205b33627f2809a7f10e93ee6.tar.gz |
libdpkg: Move myopt from standard_startup to each program main
Diffstat (limited to 'dpkg-split')
-rw-r--r-- | dpkg-split/info.c | 1 | ||||
-rw-r--r-- | dpkg-split/join.c | 1 | ||||
-rw-r--r-- | dpkg-split/main.c | 4 | ||||
-rw-r--r-- | dpkg-split/queue.c | 1 |
4 files changed, 6 insertions, 1 deletions
diff --git a/dpkg-split/info.c b/dpkg-split/info.c index 2ae72f639..1b2d62808 100644 --- a/dpkg-split/info.c +++ b/dpkg-split/info.c @@ -22,6 +22,7 @@ #include <compat.h> #include <dpkg-i18n.h> +#include <myopt.h> #include <stdio.h> #include <stdlib.h> diff --git a/dpkg-split/join.c b/dpkg-split/join.c index 48c18b5b9..09ecfd242 100644 --- a/dpkg-split/join.c +++ b/dpkg-split/join.c @@ -22,6 +22,7 @@ #include <compat.h> #include <dpkg-i18n.h> +#include <myopt.h> #include <stdio.h> #include <stdlib.h> diff --git a/dpkg-split/main.c b/dpkg-split/main.c index 454c34aec..06a52e629 100644 --- a/dpkg-split/main.c +++ b/dpkg-split/main.c @@ -173,7 +173,9 @@ int main(int argc, const char *const *argv) { bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - standard_startup(&ejbuf, argc, &argv, NULL, 0, cmdinfos); + standard_startup(&ejbuf, NULL, 0, cmdinfos); + myopt(&argv, cmdinfos); + if (!cipaction) badusage(_("need an action option")); l= strlen(depotdir); diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c index 42b2336bc..b65713313 100644 --- a/dpkg-split/queue.c +++ b/dpkg-split/queue.c @@ -31,6 +31,7 @@ #include <compat.h> #include <dpkg-i18n.h> +#include <myopt.h> #include <stdio.h> #include <stdlib.h> |