39 lines
618 B
C
39 lines
618 B
C
|
|
/*
|
||
|
|
* Copyright (c) 2026 Mirocom Laboratories and MSP engineers.
|
||
|
|
* All Rights Reserved.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <stdio.h>
|
||
|
|
#include <unistd.h>
|
||
|
|
#include <string.h>
|
||
|
|
#include "mvm/balloon.h"
|
||
|
|
|
||
|
|
static void
|
||
|
|
help(void)
|
||
|
|
{
|
||
|
|
printf("usage: ./mvm [flags]\n");
|
||
|
|
printf("[-h] Display this help menu\n");
|
||
|
|
}
|
||
|
|
|
||
|
|
int
|
||
|
|
main(int argc, char **argv)
|
||
|
|
{
|
||
|
|
int opt;
|
||
|
|
|
||
|
|
if (argc < 2) {
|
||
|
|
printf("fatal: too few arguments\n");
|
||
|
|
help();
|
||
|
|
return -1;
|
||
|
|
}
|
||
|
|
|
||
|
|
while ((opt = getopt(argc, argv, "h")) != -1) {
|
||
|
|
switch (opt) {
|
||
|
|
case 'h':
|
||
|
|
help();
|
||
|
|
return -1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return 0;
|
||
|
|
}
|