mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
Base: Replace getopt with getopt_long in man page
This commit is contained in:
parent
361fc56632
commit
6744402dbf
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ while (true) {
|
||||||
{ "pad", optional_argument, nullptr, 'p' },
|
{ "pad", optional_argument, nullptr, 'p' },
|
||||||
{ "verbose", no_argument, &verbose, 1 },
|
{ "verbose", no_argument, &verbose, 1 },
|
||||||
};
|
};
|
||||||
int opt = getopt(argc, argv, short_options, long_options, nullptr);
|
int opt = getopt_long(argc, argv, short_options, long_options, nullptr);
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case -1:
|
case -1:
|
||||||
// No more options.
|
// No more options.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue