2021-03-25 06:24:14 +00:00
|
|
|
/*
|
|
|
|
htop - pcp-htop.c
|
|
|
|
(C) 2004-2011 Hisham H. Muhammad
|
|
|
|
(C) 2020-2021 htop dev team
|
|
|
|
Released under the GNU GPLv2, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h" // IWYU pragma: keep
|
|
|
|
|
|
|
|
#include <pcp/pmapi.h>
|
|
|
|
|
|
|
|
#include "CommandLine.h"
|
|
|
|
#include "Platform.h"
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
const char* name = "pcp-htop";
|
|
|
|
pmSetProgname(name);
|
|
|
|
|
|
|
|
/* extract environment variables */
|
|
|
|
opts.flags |= PM_OPTFLAG_ENV_ONLY;
|
2021-04-08 03:15:59 +00:00
|
|
|
(void)pmGetOptions(argc, argv, &opts);
|
2021-03-25 06:24:14 +00:00
|
|
|
|
|
|
|
return CommandLine_run(name, argc, argv);
|
|
|
|
}
|