자세한 플래그가 어떻게 작동하는지 이해하려고 노력 중이지만 실패했습니다. 매뉴얼 페이지와자격 참조 가이드.
유일한 도움말 사용법은 다음과 같습니다.https://www.debian.org/doc/manuals/aptitude/ch02s05s05.en.html#configCmdLine-Verbose:
옵션:
Aptitude::CmdLine::Verbose
기본:0
설명하다: 명령줄 모드의 자세한 정도를 제어합니다.자격예. 이 명령줄 옵션이 나타날 때마다-v
이 값이 1씩 증가합니다.
하지만 작업 범위를 알려주지는 않습니다. 또한 사용 여부도 알려주지 않습니다.
~$ cat ~/.aptitude/config
Verbose "2";
그렇다면 그것은 aptitude -v
쓸모없는 것인가, 쓸모 없는 것인가?
답변1
Jeff Schaller가 말했듯이 질문에 답하는 가장 좋은 방법은 소스 코드를 살펴보는 것입니다. 다음을 통해 최신 버전을 얻을 수 있습니다.
git clone https://anonscm.debian.org/cgit/aptitude/aptitude.git
verbose
그런 다음 문자열의 발생을 살펴보십시오 .
cd aptitude/src
grep -R verbose *
다음과 같은 결과가 출력됩니다.
cmdline/cmdline_action.cc: int verbose,
cmdline/cmdline_action.cc: verbose,
cmdline/cmdline_action.cc: verbose,
cmdline/cmdline_action.cc: int verbose,
cmdline/cmdline_action.cc: if(verbose>0)
cmdline/cmdline_action.cc: if(verbose>0)
cmdline/cmdline_action.cc: if (verbose > 0)
cmdline/cmdline_action.cc: if (verbose > 0)
cmdline/cmdline_action.cc: if (verbose > 0)
cmdline/cmdline_action.cc: if (verbose > 0)
cmdline/cmdline_action.cc: if (verbose > 0)
cmdline/cmdline_action.cc: if (verbose > 0)
cmdline/cmdline_action.cc: if (verbose > 0)
cmdline/cmdline_action.cc: verbose,
cmdline/cmdline_action.cc: int verbose,
cmdline/cmdline_action.cc: verbose, source,
cmdline/cmdline_action.cc: verbose,
cmdline/cmdline_action.cc: verbose, source,
cmdline/cmdline_action.cc: verbose, source,
cmdline/cmdline_action.cc: int verbose,
cmdline/cmdline_action.cc: verbose, policy,
cmdline/cmdline_simulate.cc: bool always_prompt, int verbose,
cmdline/cmdline_simulate.cc: always_prompt, verbose,
cmdline/cmdline_simulate.cc: if(verbose==0)
cmdline/cmdline_show.cc: int verbose,
cmdline/cmdline_show.cc:static void show_package(pkgCache::PkgIterator pkg, int verbose,
cmdline/cmdline_show.cc: fragments.push_back(prv_lst_frag(pkg.ProvidesList(), true, verbose, _("Provided by")));
cmdline/cmdline_show.cc: int verbose)
cmdline/cmdline_show.cc: if (verbose>0)
cmdline/cmdline_show.cc: if(verbose<2) // Show all archives in a list.
cmdline/cmdline_show.cc: fragments.push_back(prv_lst_frag(ver.ProvidesList(), false, verbose, _("Provides")));
cmdline/cmdline_show.cc: fragments.push_back(prv_lst_frag(ver.ParentPkg().ProvidesList(), true, verbose, _("Provided by")));
cmdline/cmdline_show.cc:static void show_version(pkgCache::VerIterator ver, int verbose,
cmdline/cmdline_show.cc: cw::fragment *f=version_file_fragment(ver, ver.FileList(), verbose);
cmdline/cmdline_show.cc: cw::fragment *f=version_file_fragment(ver, vf, verbose);
cmdline/cmdline_show.cc: // If verbose<2, only show the first file.
cmdline/cmdline_show.cc: if(verbose<2)
cmdline/cmdline_show.cc: int verbose,
cmdline/cmdline_show.cc: if(verbose == 0 || has_explicit_source)
cmdline/cmdline_show.cc: show_version(ver, verbose, term_metrics);
cmdline/cmdline_show.cc: show_package(pkg, verbose, term_metrics);
cmdline/cmdline_show.cc: show_version(ver, verbose, term_metrics);
cmdline/cmdline_show.cc: show_package(pkg, verbose, term_metrics);
cmdline/cmdline_show.cc:bool do_cmdline_show(const string& s, int verbose, const std::shared_ptr<terminal_metrics> &term_metrics)
cmdline/cmdline_show.cc: verbose,
cmdline/cmdline_show.cc: verbose,
cmdline/cmdline_show.cc:int cmdline_show(int argc, char *argv[], int verbose)
cmdline/cmdline_show.cc: if(!do_cmdline_show(argv[i], verbose, term))
cmdline/cmdline_moo.cc:int cmdline_moo(int argc, char *argv[], int verbose)
cmdline/cmdline_moo.cc: switch(verbose)
cmdline/cmdline_moo.h:int cmdline_moo(int argc, char *argv[], int verbose);
cmdline/cmdline_why.h: * \param verbosity How verbose the search should be (if set to a value
cmdline/cmdline_util.h: * \param verbose the verbosity level; controls how many
cmdline/cmdline_util.h: int verbose,
cmdline/cmdline_user_tag.cc: int verbose,
cmdline/cmdline_user_tag.cc: if (operation_result && verbose>0)
cmdline/cmdline_user_tag.cc: int verbose)
cmdline/cmdline_user_tag.cc: print_result(act, tag, pkg, verbose, op_result);
cmdline/cmdline_user_tag.cc: int cmdline_user_tag(int argc, char *argv[], int quiet, int verbose)
cmdline/cmdline_user_tag.cc: bool result = do_user_tag(action, tag, pkg, verbose);
cmdline/cmdline_user_tag.cc: bool result = do_user_tag(action, tag, pkg, verbose);
cmdline/cmdline_do_action.h: int verbose);
cmdline/cmdline_update.cc:int cmdline_update(int argc, char *argv[], int verbose)
cmdline/cmdline_update.cc: (cmdline_do_download(&m, verbose, term, term, term, term)
cmdline/cmdline_util.cc: int verbose,
cmdline/cmdline_util.cc: verbose >= 1, verbose >= 2,
cmdline/cmdline_show.h: * \param verbose How much information to render (scale of 0 to 2 inclusive).
cmdline/cmdline_show.h: int verbose);
cmdline/cmdline_show.h: int verbose,
cmdline/cmdline_show.h:int cmdline_show(int argc, char *argv[], int verbose);
cmdline/cmdline_action.h: * \param verbose The verbosity level at which this command should
cmdline/cmdline_action.h: int verbose,
cmdline/cmdline_action.h: * \param verbose The verbosity level at which this command should
cmdline/cmdline_action.h: int verbose,
cmdline/cmdline_action.h: * \param verbose The verbosity level at which this command should
cmdline/cmdline_action.h: int verbose,
cmdline/cmdline_do_action.cc: bool queue_only, int verbose)
cmdline/cmdline_do_action.cc: verbose, policy, arch_only, pass > 0,
cmdline/cmdline_do_action.cc: if(!aptitude::cmdline::safe_resolve_deps(verbose,
cmdline/cmdline_do_action.cc: always_prompt, verbose, assume_yes,
cmdline/cmdline_do_action.cc: always_prompt, verbose, assume_yes,
cmdline/cmdline_do_action.cc: (cmdline_do_download(&m, verbose, term, term, term, term)
cmdline/cmdline_prompt.cc: int verbose,
cmdline/cmdline_prompt.cc: make_cmdline_why_callbacks(verbose, term_metrics);
cmdline/cmdline_prompt.cc: if(verbose > 1)
cmdline/cmdline_prompt.cc: else if(verbose > 0)
cmdline/cmdline_prompt.cc: * \param verbose controls various aspects of how verbose the list is.
cmdline/cmdline_prompt.cc: int verbose,
cmdline/cmdline_prompt.cc: std::string whystring(roots_string(*i, verbose, term_metrics));
cmdline/cmdline_prompt.cc: int verbose,
cmdline/cmdline_prompt.cc: verbose,
cmdline/cmdline_prompt.cc: cmdline_show_instinfo(recommended, verbose, showvers, showdeps, showsize, false, showwhy, term_metrics);
cmdline/cmdline_prompt.cc: if(verbose>0 && !suggested.empty())
cmdline/cmdline_prompt.cc: cmdline_show_instinfo(suggested, verbose, showvers, showdeps, showsize, false, showwhy, term_metrics);
cmdline/cmdline_prompt.cc: if (verbose>0 && ! not_upgraded.empty())
cmdline/cmdline_prompt.cc: cmdline_show_instinfo(not_upgraded, verbose, showvers, showdeps, showsize, false, showwhy, term_metrics);
cmdline/cmdline_prompt.cc: int verbose,
cmdline/cmdline_prompt.cc: do_cmdline_show(*it, verbose, term_metrics);
cmdline/cmdline_prompt.cc: int verbose,
cmdline/cmdline_prompt.cc: showvers, showdeps, showsize, showwhy, verbose,
cmdline/cmdline_prompt.cc: verbose,
cmdline/cmdline_prompt.cc: verbose, term_metrics);
cmdline/cmdline_prompt.cc: cmdline_parse_show(response, verbose, term_metrics);
cmdline/cmdline_prompt.cc: to_remove, to_purge, verbose,
cmdline/cmdline_user_tag.h: int cmdline_user_tag(int argc, char *argv[], int quiet, int verbose);
cmdline/cmdline_simulate.h: * \param verbose the current verbosity level
cmdline/cmdline_simulate.h: bool always_prompt, int verbose,
cmdline/cmdline_prompt.h: * \param verbose the current verbosity level
cmdline/cmdline_prompt.h: int verbose,
cmdline/cmdline_prompt.h: int verbose,
cmdline/cmdline_resolver.h: * \param verbose the verbosity level set by the user
cmdline/cmdline_resolver.h: int verbose,
cmdline/cmdline_resolver.h: * \param verbose The verbosity level (increase to get more
cmdline/cmdline_resolver.h: bool safe_resolve_deps(int verbose,
cmdline/cmdline_resolver.cc: int verbose,
cmdline/cmdline_resolver.cc: to_remove, to_purge, verbose,
cmdline/cmdline_resolver.cc: bool safe_resolve_deps(int verbose,
cmdline/cmdline_update.h:int cmdline_update(int argc, char *argv[], int verbose);
main.cc: {"verbose", 0, NULL, 'v'},
main.cc: int verbose=aptcfg->FindI(PACKAGE "::CmdLine::Verbose", 0);
main.cc: ++verbose;
main.cc: return cmdline_update(argc-optind, argv+optind, verbose);
main.cc: status_fname, verbose,
main.cc: status_fname, verbose,
main.cc: arch_only, queue_only, verbose);
main.cc: quiet, verbose);
main.cc: return cmdline_moo(argc-optind, argv+optind, verbose);
main.cc: return cmdline_show(argc-optind, argv+optind, verbose);
main.cc에서 verbose 변수가 증가하는 것을 볼 수 있습니다.
// Read the arguments:
while((curopt=getopt_long(argc, argv, "DVZWvhS:uiF:w:sO:fdyPt:q::Rro:", opts, NULL))!=-1)
{
switch(curopt)
{
//Other options
case 'v':
++verbose;
break;
//Other options
이는 명령줄 옵션에 a가 나타날 때마다 v
1씩 증가한다는 의미입니다. 하지만 테스트한 최대값 verbose
은 입니다.verbose
2
verbose>=2
즉, -vv
명령줄에 더 많은 내용을 입력하는 것은 쓸모가 없습니다.
편집하다
보다 직접적으로 cmdline_show.h에서 볼 수 있습니다.
* \param verbose How much information to render (scale of 0 to 2 inclusive).