"sync", "system", "unmerge", "world",
]
options=[
-"--ask",
+"--ask", "--alphabetical",
"--buildpkg", "--buildpkgonly",
"--changelog", "--columns", "--cols",
"--debug", "--deep",
def create_use_string(*args):
return ""
else:
- def create_use_string(name, cur_iuse, cur_use, old_iuse, old_use, is_new, all_flags=("--verbose" in myopts)):
+ def create_use_string(name, cur_iuse, cur_use, old_iuse, old_use, is_new,
+ all_flags=("--verbose" in myopts), alphabetical=("--alphabetical" in myopts)):
enabled = []
- disabled = []
+ if alphabetical:
+ disabled = enabled
+ else:
+ disabled = []
for flag in cur_iuse:
if flag in cur_use:
if is_new or flag in old_use and all_flags:
disabled.append(green("-"+flag)+"*")
enabled = " ".join(enabled)
- disabled = " ".join(disabled)
+ if alphabetical:
+ disabled = ""
+ else:
+ disabled = " ".join(disabled)
if enabled and disabled:
ret = enabled + " " + disabled
elif enabled:
file setup or other similar setups that the user may wish to run.
.SH "OPTIONS"
.TP
+.BR "\-\-alphabetical "
+When displaying USE and other flag output, combines the enabled and
+disabled lists into one list and sorts the whole list alphabetically.
+.TP
.BR "\-\-ask " (\fB\-a\fR)
Before performing the merge, display what ebuilds and tbz2s will be installed,
in the same format as when using \fB\-\-pretend\fR; then ask whether to
print " file setup or other similar setups that the user may wish to run."
print
print turquoise("Options:")
+ print " "+green("--alphabetical")
+ print " When displaying USE and other flag output, combines the enabled and"
+ print " disabled lists into one list and sorts the whole list"
+ print " alphabetically. With this option, output such as USE=\"dar -bar"
+ print " -foo\" will instead be displayed as USE=\"-bar dar -foo\""
+ print
print " "+green("--ask")+" ("+green("-a")+" short option)"
print " before performing the merge, display what ebuilds and tbz2s will"
print " be installed, in the same format as when using --pretend; then"