summaryrefslogtreecommitdiffstats
path: root/tools/src/h5jam/h5unjam.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-08-03 21:04:58 (GMT)
committerGitHub <noreply@github.com>2021-08-03 21:04:58 (GMT)
commit5dabec4cf6b97793e3af6df3b6a3953394bbf27d (patch)
treefdfe1784e0d3f0b5879278570a8082e71ad33686 /tools/src/h5jam/h5unjam.c
parent04f1bff6757892df07cd72520af276f7691ff43b (diff)
downloadhdf5-5dabec4cf6b97793e3af6df3b6a3953394bbf27d.zip
hdf5-5dabec4cf6b97793e3af6df3b6a3953394bbf27d.tar.gz
hdf5-5dabec4cf6b97793e3af6df3b6a3953394bbf27d.tar.bz2
Removes partial long options from the tools (#872)
Some of the command-line tools would allow partial long options (e.g., --datas instead of --dataset). These were inconsistently implemented, difficult to maintain, and occasionally blocked useful long options. They have been removed from all the tools. NOTE: This change should NOT be merged to 1.12 or earlier.
Diffstat (limited to 'tools/src/h5jam/h5unjam.c')
-rw-r--r--tools/src/h5jam/h5unjam.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/src/h5jam/h5unjam.c b/tools/src/h5jam/h5unjam.c
index 38d1a5e..fa23b06 100644
--- a/tools/src/h5jam/h5unjam.c
+++ b/tools/src/h5jam/h5unjam.c
@@ -36,13 +36,9 @@ char *ub_file = NULL;
* adding more, make sure that they don't clash with each other.
*/
static const char * s_opts = "hu:i:o:d:V";
-static struct h5_long_options l_opts[] = {
- {"help", no_arg, 'h'}, {"hel", no_arg, 'h'}, {"i", require_arg, 'i'}, /* input file */
- {"u", require_arg, 'u'}, /* user block file */
- {"o", require_arg, 'o'}, /* output file */
- {"delete", no_arg, 'd'}, /* delete ub */
- {"delet", no_arg, 'd'}, {"dele", no_arg, 'd'}, {"del", no_arg, 'd'},
- {"de", no_arg, 'd'}, {NULL, 0, '\0'}};
+static struct h5_long_options l_opts[] = {{"help", no_arg, 'h'}, {"i", require_arg, 'i'},
+ {"u", require_arg, 'u'}, {"o", require_arg, 'o'},
+ {"delete", no_arg, 'd'}, {NULL, 0, '\0'}};
/*-------------------------------------------------------------------------
* Function: usage