I spent some time today with gflags and I wasn't very impressed with it.
My main issue is with `--help`.
It shows the following
```
./debug/parquet-dump-schema --help
parquet-dump-schema: Usage: parquet-dump-schema --file=<filename>
Flags from /arrow/build/gflags_ep-prefix/src/gflags_ep/src/gflags.cc:
-flagfile (load flags from file) type: string default: ""
-fromenv (set flags from the environment [use 'export FLAGS_flag1=value'])
type: string default: ""
-tryfromenv (set flags from the environment if present) type: string
default: ""
-undefok (comma-separated list of flag names that it is okay to specify on
the command line even if the program does not define a flag with that
name. IMPORTANT: flags in this list that have arguments MUST use the
flag=value format) type: string default: ""
Flags from
/arrow/build/gflags_ep-prefix/src/gflags_ep/src/gflags_completions.cc:
-tab_completion_columns (Number of columns to use in output for tab
completion) type: int32 default: 80
-tab_completion_word (If non-empty, HandleCommandLineCompletions() will
hijack the process and attempt to do bash-style command line flag
completion on this value.) type: string default: ""
Flags from
/arrow/build/gflags_ep-prefix/src/gflags_ep/src/gflags_reporting.cc:
-help (show help on all flags [tip: all flags can have two dashes])
type: bool default: false currently: true
-helpfull (show help on all flags -- same as -help) type: bool
default: false
-helpmatch (show help on modules whose name contains the specified substr)
type: string default: ""
-helpon (show help on the modules named by this flag value) type: string
default: ""
-helppackage (show help on all modules in the main package) type: bool
default: false
-helpshort (show help on only the main module for this program) type: bool
default: false
-helpxml (produce an xml version of help) type: bool default: false
-version (show version and build info and exit) type: bool default: false
Flags from /arrow/cpp/tools/parquet/parquet-dump-schema.cc:
-file (Input file name) type: string default: ""
```
If we use `--helpshort`, it prints the right flags.
[ Full content available at: https://github.com/apache/arrow/pull/2715 ]
This message was relayed via gitbox.apache.org for [email protected]