blob: 830b4c4f50f65ce2683f8d53264096f6c49cea2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _CLIUTIL_H
#define _CLIUTIL_H
#include <stdio.h>
#include <popt.h>
#include <rpm/rpmutil.h>
RPM_GNUC_NORETURN
void argerror(const char * desc);
void printUsage(poptContext con, FILE * fp, int flags);
/* Initialize cli-environment, returning parsed popt context caller */
poptContext initCli(const char *ctx, struct poptOption *optionsTable,
int argc, char *argv[]);
/* Free up common resources, return "normalized" exit code */
int finishCli(poptContext optCon, int rc);
#endif /* _CLIUTIL_H */
|