mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Rename --print with --desc
This commit is contained in:
parent
31aa1e7076
commit
aeb845999b
4 changed files with 5 additions and 5 deletions
|
@ -365,7 +365,7 @@ Command Line Tool Usage
|
||||||
-t, --tracking, [repository] [package] Tracking package dependencies and
|
-t, --tracking, [repository] [package] Tracking package dependencies and
|
||||||
print package dependenies tree with
|
print package dependenies tree with
|
||||||
highlight if packages is installed.
|
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
|
--color=[] directly from the repository and
|
||||||
change color text.
|
change color text.
|
||||||
-n, --network, [package] View a standard of SBo page in
|
-n, --network, [package] View a standard of SBo page in
|
||||||
|
|
|
@ -159,7 +159,7 @@ Tracking all dependencies of that package.
|
||||||
The sequence shown is that you must follow to correctly install 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.
|
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
|
\fBslpkg\fP \fB-p\fP <\fIrepository\fP> <\fIname of package\fP>, \fB--color=[]\fP
|
||||||
.PP
|
.PP
|
||||||
Print package description from remote repository with color. Available colors:
|
Print package description from remote repository with color. Available colors:
|
||||||
|
|
|
@ -87,7 +87,7 @@ Optional arguments:
|
||||||
-t, --tracking, [repository] [package] Tracking package dependencies and
|
-t, --tracking, [repository] [package] Tracking package dependencies and
|
||||||
print package dependenies tree with
|
print package dependenies tree with
|
||||||
highlight if packages is installed.
|
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
|
--color=[] directly from the repository and
|
||||||
change color text.
|
change color text.
|
||||||
-n, --network, [package] View a standard of SBo page in
|
-n, --network, [package] View a standard of SBo page in
|
||||||
|
|
|
@ -408,7 +408,7 @@ class ArgParse(object):
|
||||||
def pkg_desc(self):
|
def pkg_desc(self):
|
||||||
"""Print slack-desc by repository
|
"""Print slack-desc by repository
|
||||||
"""
|
"""
|
||||||
options = ["-p", "--print"]
|
options = ["-p", "--desc"]
|
||||||
flag = ["--color="]
|
flag = ["--color="]
|
||||||
colors = ["red", "green", "yellow", "cyan", "grey"]
|
colors = ["red", "green", "yellow", "cyan", "grey"]
|
||||||
if (len(self.args) == 3 and self.args[0] in options and
|
if (len(self.args) == 3 and self.args[0] in options and
|
||||||
|
@ -517,7 +517,7 @@ def main():
|
||||||
"-F": argparse.pkg_find,
|
"-F": argparse.pkg_find,
|
||||||
"--FIND": argparse.pkg_find,
|
"--FIND": argparse.pkg_find,
|
||||||
"-p": argparse.pkg_desc,
|
"-p": argparse.pkg_desc,
|
||||||
"--print": argparse.pkg_desc,
|
"--desc": argparse.pkg_desc,
|
||||||
"-d": argparse.pkg_contents,
|
"-d": argparse.pkg_contents,
|
||||||
"--display": argparse.pkg_contents,
|
"--display": argparse.pkg_contents,
|
||||||
"-g": argparse.congiguration,
|
"-g": argparse.congiguration,
|
||||||
|
|
Loading…
Reference in a new issue