Commit Diff
Diff:
231dac4cfaa8f56401a3d1c7583d627d843e843f
be651c8d258a5decc3eb196fb34ce1f8b735dc76
Commit:
be651c8d258a5decc3eb196fb34ce1f8b735dc76
Tree:
9258300cb8a01d751aa6183be8755a67719c74f3
Author:
frédéric galusik <fredg@salixos.org>
Committer:
frédéric galusik <fredg@salixos.org>
Date:
Thu Nov 1 19:24:24 2012 UTC
Message:
README updated
blob - 0bcb8be9d96b1fd247a34f5939d60bac4fbc0c51
blob + 7fb0b0c616be349ac855114eebe805320365ae29
--- README
+++ README
@@ -17,6 +17,44 @@ git clone ssh://git@github.com/fredg/pkgtxt2db.git
------------------------------------------------------------------
-Conversion to Python is in Progress
+GENERAL OPTIONS
+ -h, --help
+ Simple help
+ --version
+ Print pkgtxt2db version
+ -u, --update
+ It will fetch and download a new PACKAGES.TXT from your choosen repository.
+
+ -t, --target
+ Choose between slackware or salix repositories.
+
+ --repo Choose the arch repository, it can be i486 or x86_64.
+
+ -r, --release
+ Choose the slackware or salix release. It can be: current (if exist), 14.0, 13.37, ..., 13.0.
+
+ -e, --expa
+ Choose between the patches or extra Slackware repository.
+
+ -c, --convert
+ Choose your database format, it can be:
+
+ · csv : Convert PACKAGES.TXT to a CSV database.
+
+ · json: Convert PACKAGES.TXT to a JSON database.
+
+ · xml : Convert PACKAGES.TXT to a XML database.
+
+ -o, --output
+ Choose the name of the output file. If none is choosen, packages will be used.
+
+COMMAND LINE USAGE
+ Here are some usages examples.
+
+ pkgtxt2db -u -t slackware --repo x86_64 -r 14.0 -c json -o slack64.json
+ It will fetch and convert PACKAGES.TXT from the Slackware current x86_64 repository to a JSON database: salix64.json.
+
+ pkgtxt2db -c csv
+ It will convert the PACKAGES.TXT found in your directory to a CSV database (; separated): packages.csv. You can open it with libreoffice ;)
Frédéric Galusik