Issue 8259 - LMDB utilities print usage incorrectly
Summary: LMDB utilities print usage incorrectly
Status: VERIFIED FIXED
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-30 07:47 UTC by jpmens@gmail.com
Modified: 2020-03-12 15:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jpmens@gmail.com 2015-09-30 07:47:54 UTC
Full_Name: Jan-Piet Mens
Version: LMDB 0.9.16
OS: OSX, Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (2a02:908:b41:38e0:241a:be7c:787f:620)


LMDB's utilities (mdb_stat, mdb_copy, etc) incorrectly specify that dbpath
(envpath) comes before options. 

$ ./mdb_stat jp -a
usage: ./mdb_stat dbpath [-V] [-n] [-e] [-r[r]] [-f[f[f]]] [-a|-s subdb]

$ ./mdb_stat -a jp
Status of Main DB
...

This also requires a documentation update in the man pages.
Comment 1 Howard Chu 2015-09-30 17:13:00 UTC
jpmens@gmail.com wrote:
> Full_Name: Jan-Piet Mens
> Version: LMDB 0.9.16
> OS: OSX, Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (2a02:908:b41:38e0:241a:be7c:787f:620)
>
>
> LMDB's utilities (mdb_stat, mdb_copy, etc) incorrectly specify that dbpath
> (envpath) comes before options.
>
> $ ./mdb_stat jp -a
> usage: ./mdb_stat dbpath [-V] [-n] [-e] [-r[r]] [-f[f[f]]] [-a|-s subdb]
>
> $ ./mdb_stat -a jp
> Status of Main DB
> ...
>
> This also requires a documentation update in the man pages.

Fixed in mdb.master and mdb.RE/0.9


-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 2 OpenLDAP project 2015-09-30 17:13:48 UTC
fixed in mdb.master,mdb.RE/0.9
Comment 3 Howard Chu 2015-09-30 17:13:48 UTC
changed notes
changed state Open to Test
moved from Incoming to Documentation
Comment 4 Quanah Gibson-Mount 2015-11-30 18:24:18 UTC
changed state Test to Closed