openSUSE / docmanager

Manage DocBook 5 Meta Information
http://opensuse.github.io/docmanager/index.html
GNU General Public License v3.0
6 stars 6 forks source link

Option for just getting the value of a property #4

Closed mschnitzer closed 9 years ago

mschnitzer commented 9 years ago

It would be nice if we have an option for just getting the value of a specific property like: docmanager --single-output -f example.xml -g hello

The output should be: world

(or something like that - depends on the value of hello)

mschnitzer commented 9 years ago

Implemented since: https://github.com/openSUSE/docmanager/commit/d84015bc9753d28ae62c8a3d34d10ee79ac1b0e4

I didn't implement an extra option for that I just adjusted the output. If you have only one file, the output will be just the value of the given property. If you have more than 2 files, the output will be something like this:

file1.xml -> value of the property
file2.xml -> value of the property