set (s) Set key=value property (one or more) to delete the key
let the value blank.
change to: Set key=value property (one or more). To delete the key
leave the value empty.
query (q, analyze) Similar to get, but query can be given as pseudo SQL
syntax. allowed keywords are SELECT, WHERE, and
SORTBY. Output is formatted as table.
change to: Similar to get, but query can be given as pseudo SQL
syntax. Allowed keywords are SELECT, WHERE, and
SORTBY. Output is formatted as table.
Whereas the man page talks about "XML files", the help text talks about "XML documents" or "documents". Better unify to "XML files" as (IMHO), DocManager operates on a file basis (also, in my understanding, a "document" can be made up of several XML files).
Regarding the help texts for the command, the subcommands and the arguments, decide about the following (and stick to this decision for all of them):
Either start all of them with a capital letter (I would probably do so) or use lowercase for all of them. Currently we have a mixture of both spellings, e.g.
optional arguments:
-h, --help show this help message and exit
-v, --verbose Increase verbosity level
Either use 3rd person singular or imperative for all. Currently we have a mixture of both, e.g.
init (i) Initializes (3rd person singular) an XML document with predefined
properties.
get (g) Get (imperative) key and returns (3rd person singular) value
Decide if to use a full stop at the end or not. Currently we have a mixture of both, e.g.
init (i) Initializes an XML document with predefined
properties.
get (g) Get key and returns value
set (s) Set key=value property (one or more) to delete the key let the value blank.
change to: Set key=value property (one or more). To delete the key leave the value empty.
query (q, analyze) Similar to get, but query can be given as pseudo SQL syntax. allowed keywords are SELECT, WHERE, and SORTBY. Output is formatted as table.
change to: Similar to get, but query can be given as pseudo SQL syntax. Allowed keywords are SELECT, WHERE, and SORTBY. Output is formatted as table.
Whereas the man page talks about "XML files", the help text talks about "XML documents" or "documents". Better unify to "XML files" as (IMHO), DocManager operates on a file basis (also, in my understanding, a "document" can be made up of several XML files).
Regarding the help texts for the command, the subcommands and the arguments, decide about the following (and stick to this decision for all of them):