update arguments comments

This commit is contained in:
Dimitris Zlatanidis 2015-05-31 06:34:29 +03:00
parent 6d59f6b561
commit 4602bdddd3

View file

@ -27,85 +27,89 @@ from __metadata__ import MetaData as _m
def options(): def options():
arguments = [ """
"\nslpkg - version {0} | Slackware release: {1}\n".format( slpkg - version 2.3.6 | Slackware release: stable
_m.__version__, _m.slack_rel),
"Slpkg is a user-friendly package manager for Slackware " Slpkg is a user-friendly package manager for Slackware installations
"installations\n",
"Commands:", Commands:
" update Run this command to update all", update Run this command to update all
" the packages list.", the packages list.
" upgrade Delete and recreate all packages", upgrade Delete and recreate all packages
" lists.", lists.
" repo-add [repository name] [URL] Add custom repository.", repo-add [repository name] [URL] Add custom repository.
" repo-remove [repository] Remove custom repository.", repo-remove [repository] Remove custom repository.
" repo-list Print a list of all the", repo-list Print a list of all the
" repositories.", repositories.
" repo-info [repository] Get information about a", repo-info [repository] Get information about a
" repository.", repository.
" update slpkg Upgrade the program directly from", update slpkg Upgrade the program directly from
" repository.\n", repository.
"Optional arguments:",
" -h, --help print this help message and exit", Optional arguments:
" -v, --version print program version and exit.", -h, --help print this help message and exit
" -a, [script.tar.gz] [source...] Auto build SBo packages.", -v, --version print program version and exit.
" If you already have downloaded the", -a, [script.tar.gz] [source...] Auto build SBo packages.
" script and the source code you can", If you already have downloaded the
" build a new package with this", script and the source code you can
" command.", build a new package with this
" -b, [package...] --add, --remove Manage packages in the blacklist. ", command.
" list Add or remove packages and print", -b, [package...] --add, --remove Manage packages in the blacklist.
" the list. Each package is added", list Add or remove packages and print
" here will not be accessible by the", the list. Each package is added
" program.", here will not be accessible by the
" -q, [package...] --add, --remove Manage SBo packages in the queue.", program.
" list, build, install, build-install Add or remove and print the list", -q, [package...] --add, --remove Manage SBo packages in the queue.
" of packages. Build and then install", list, build, install, build-install Add or remove and print the list
" ths packages from the queue.", of packages. Build and then install
" -g, config, config=[editor] Configuration file management.", the packages from the queue.
" Print the configuration file or", -g, config, config=[editor] Configuration file management.
" edit.", Print the configuration file or
" -l, [repository], --index, --installed List of repositories packages.", edit.
" Print a list of all available", -l, [repository], --index, --installed List of repositories packages.
" packages repository, index or print", Print a list of all available
" only packages installed on the", packages repository, index or print
" system.", only packages installed on the
" -c, [repository] --upgrade Check and print of available", system.
" packages for upgrade.", -c, [repository] --upgrade Check and print of available
" -s, [repository] [package...] Sync packages. Install packages", packages for upgrade.
" directly from remote repositories", -s, [repository] [package...] Sync packages. Install packages
" with all dependencies.", directly from remote repositories
" -t, [repository] [package] Track package dependencies.", with all dependencies.
" Print package dependenies tree with", -t, [repository] [package] Track package dependencies and
" highlight if packages is installed.", print package dependenies tree with
" -p, [repository] [package], --color=[] Print description of a package", highlight if packages is installed.
" directly from the repository and", -p, [repository] [package], --color=[] Print description of a package
" change color text.", directly from the repository and
" -n, [package] View a standard of SBo page in", change color text.
" terminal and manage multiple options", -n, [package] View a standard of SBo page in
" like reading, downloading, building", terminal and manage multiple options
" installation, etc.", like reading, downloading, building
" -F, [package...] Find packages from repositories.", installation, etc.
" Searching at each enabled repository", -F, [package...] Find packages from repositories and
" and prints results.", search at each enabled repository
" -f, [package...] Find installed packages. Print", and prints results.
" installed packages matching,", -f, [package...] Find installed packages. Print
" reporting the size and the sum.", installed packages matching,
" -i, [package...] Installs single or multiple", reporting the size and the sum.
" Slackware binary packages (*.t?z).", -i, [package...] Installs single or multiple
" -u, [package...] Upgrade single or multiple Slackware", Slackware binary packages (*.t?z).
" binary packages from a older to a", -u, [package...] Upgrade single or multiple Slackware
" newer one.", binary packages from a older to a
" -o, [package...] Reinstall signle or multiple", newer one.
" Slackware binary packages with the", -o, [package...] Reinstall signle or multiple
" same packages if the exact.", Slackware binary packages with the
" -r, [package...] Removes a previously installed", same packages if the exact.
" Slackware binary packages.", -r, [package...] Removes a previously installed
" -d, [package...] Display the packages contents and", Slackware binary packages.
" file list.\n" -d, [package...] Display the packages contents and
] file list.
for opt in arguments:
print(opt) You can read more about slpkg from manpage or see examples from readme file.
"""
print("\nslpkg - version {0} | Slackware release: {1}\n".format(
_m.__version__, _m.slack_rel))
print options.__doc__
def usage(repo): def usage(repo):