blob: de286117b6e6d300508dac038e5114210736d3a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* Implements the '--help-args-only' and '--advanced-options-args-only'
* nvidia-installer command line options for use by makeself when
* generating the .run file during the 'dist' step.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "nvidia-installer.h"
#include "help-args.h"
void print_usage(char **argv)
{
fprintf(stderr, "usage: %s --help-args-only|"
"--advanced-options-args-only\n", argv[0]);
}
int main(int argc, char **argv)
{
if (argc != 2) {
print_usage(argv);
exit(1);
}
if (strcmp(argv[1], "--help-args-only") == 0)
print_help_args_only(FALSE, TRUE, FALSE);
else if (strcmp(argv[1], "--advanced-options-args-only") == 0)
print_help_args_only(FALSE, TRUE, TRUE);
else {
print_usage(argv);
exit(1);
}
return 0;
}
|