Files
ropkg/ropam/commands.h

42 lines
1.3 KiB
C

#ifndef COMMANDS_H_
#define COMMANDS_H_
enum {
CMD_ROOT,
CMD_SYNC,
CMD_REMOVE,
CMD_QUERY,
CMD_BOOTSTRAP,
CMD_REPO,
CMD_REPO_ADD,
CMD_REPO_REMOVE,
CMD_REPO_LIST,
};
enum {
OPT_SYSROOT = 0x1000,
OPT_SYSROOT_PATH,
};
#define SYSROOT_OPTION \
B_COMMAND_OPTION(OPT_SYSROOT) \
{ \
B_OPTION_SHORT_NAME('s'); \
B_OPTION_LONG_NAME("sysroot"); \
B_OPTION_DESC( \
"the system directory to use. if no " \
"sysroot is specified, the root directory is used. " \
"alternatively, the ROSETTA_SYSROOT environment " \
"variable can be used to specify the system root " \
"directory"); \
\
B_OPTION_ARG(OPT_SYSROOT_PATH) \
{ \
B_ARG_NAME("path"); \
B_ARG_NR_VALUES(1); \
} \
}
#endif