From aeb845999bdf92b15356e255e4929e0da0c17649 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 20 Jun 2015 02:56:36 +0300 Subject: [PATCH] Rename --print with --desc --- README.rst | 2 +- man/slpkg.8 | 2 +- slpkg/arguments.py | 2 +- slpkg/main.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 669fb5b6..9069ff6f 100644 --- a/README.rst +++ b/README.rst @@ -365,7 +365,7 @@ Command Line Tool Usage -t, --tracking, [repository] [package] Tracking package dependencies and print package dependenies tree with highlight if packages is installed. - -p, --print, [repository] [package], Print description of a package + -p, --desc, [repository] [package], Print description of a package --color=[] directly from the repository and change color text. -n, --network, [package] View a standard of SBo page in diff --git a/man/slpkg.8 b/man/slpkg.8 index f17fc719..564af0a5 100644 --- a/man/slpkg.8 +++ b/man/slpkg.8 @@ -159,7 +159,7 @@ Tracking all dependencies of that package. The sequence shown is that you must follow to correctly install package. Also you can check if the installed package has all the required dependencies. -.SS -p, --print, print packages description +.SS -p, --desk, print packages description \fBslpkg\fP \fB-p\fP <\fIrepository\fP> <\fIname of package\fP>, \fB--color=[]\fP .PP Print package description from remote repository with color. Available colors: diff --git a/slpkg/arguments.py b/slpkg/arguments.py index 0a07aeec..a4a0d506 100644 --- a/slpkg/arguments.py +++ b/slpkg/arguments.py @@ -87,7 +87,7 @@ Optional arguments: -t, --tracking, [repository] [package] Tracking package dependencies and print package dependenies tree with highlight if packages is installed. - -p, --print, [repository] [package], Print description of a package + -p, --desc, [repository] [package], Print description of a package --color=[] directly from the repository and change color text. -n, --network, [package] View a standard of SBo page in diff --git a/slpkg/main.py b/slpkg/main.py index 83c0a622..77a3dcec 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -408,7 +408,7 @@ class ArgParse(object): def pkg_desc(self): """Print slack-desc by repository """ - options = ["-p", "--print"] + options = ["-p", "--desc"] flag = ["--color="] colors = ["red", "green", "yellow", "cyan", "grey"] if (len(self.args) == 3 and self.args[0] in options and @@ -517,7 +517,7 @@ def main(): "-F": argparse.pkg_find, "--FIND": argparse.pkg_find, "-p": argparse.pkg_desc, - "--print": argparse.pkg_desc, + "--desc": argparse.pkg_desc, "-d": argparse.pkg_contents, "--display": argparse.pkg_contents, "-g": argparse.congiguration,