diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-04-12 17:32:37 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-04-12 17:32:37 +0000 |
commit | befaa350b1cf847a920d75edaf93fcb340c31288 (patch) | |
tree | d51f868144f8a960da3887ca7c65776694b55a48 | |
parent | ab768a4a8829d7a964efe41aee1045631c97c1bf (diff) | |
download | prt-get-befaa350b1cf847a920d75edaf93fcb340c31288.tar.gz prt-get-befaa350b1cf847a920d75edaf93fcb340c31288.tar.xz |
prt-get: nicer output for dependent --tree
git-svn-id: https://crux.nu/svn/tools/prt-get/trunk@1235 0b5ae1c7-2405-0410-a7fc-ba219f786e1e
-rw-r--r-- | src/prtget.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/prtget.cpp b/src/prtget.cpp index 7d0dab4..02fdc91 100644 --- a/src/prtget.cpp +++ b/src/prtget.cpp @@ -1250,7 +1250,13 @@ void PrtGet::printDependent() initRepo(); string arg = *(m_parser->otherArgs().begin()); - printDependent(arg, 0); + + if (m_parser) { + cout << arg << endl; + printDependent(arg, 2); + } else { + printDependent(arg, 0); + } } void PrtGet::printDependent(const string& dep, int level) |