default fflag (read HFS volume name ) option is now off
remove the non-functional -p/--pname argument, replace it with -f/--fname add -a (use abbreviations) and -L (use logical offsets) to getopt parse list thanks to wiz for noticing inconsistencies
This commit is contained in:
parent
8d3827bfb7
commit
a46307b17e
2
dist/pdisk/dump.h
vendored
2
dist/pdisk/dump.h
vendored
@ -36,7 +36,7 @@
|
||||
//
|
||||
#define AFLAG_DEFAULT 0
|
||||
#define PFLAG_DEFAULT 1
|
||||
#define FFLAG_DEFAULT 1
|
||||
#define FFLAG_DEFAULT 0
|
||||
|
||||
|
||||
//
|
||||
|
6
dist/pdisk/pdisk.c
vendored
6
dist/pdisk/pdisk.c
vendored
@ -388,7 +388,7 @@ get_options(int argc, char **argv)
|
||||
{"debug", no_argument, 0, 'd'},
|
||||
{"readonly", no_argument, 0, 'r'},
|
||||
{"abbr", no_argument, 0, 'a'},
|
||||
{"pname", no_argument, 0, 'p'},
|
||||
{"fname", no_argument, 0, 'f'},
|
||||
{"logical", no_argument, 0, kLogicalOption},
|
||||
{"interactive", no_argument, 0, 'i'},
|
||||
{"compute_size", no_argument, 0, 'c'},
|
||||
@ -418,11 +418,11 @@ get_options(int argc, char **argv)
|
||||
|
||||
#if defined(__linux__) || defined(__NetBSD__)
|
||||
optind = 0; // reset option scanner logic
|
||||
while ((c = getopt_long(argc, argv, "hlvdricp", long_options,
|
||||
while ((c = getopt_long(argc, argv, "hlvdraLicf", long_options,
|
||||
&option_index)) >= 0)
|
||||
#else
|
||||
opterr = 0; /* tell getopt to be quiet */
|
||||
while ((c = getopt(argc, argv, "hlvdraLicp")) != EOF)
|
||||
while ((c = getopt(argc, argv, "hlvdraLicf")) != EOF)
|
||||
#endif
|
||||
{
|
||||
#if !(defined(__linux__) || defined(__NetBSD__))
|
||||
|
Loading…
Reference in New Issue
Block a user