From: Marius Mauch Date: Sun, 19 Feb 2006 04:55:17 +0000 (-0000) Subject: deprecate 'emerge action' syntax in favor of 'emerge --action' X-Git-Tag: v2.1_pre5_2760~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ab67bfa58411836f4997524db4dd5d6c070ce32f;p=portage.git deprecate 'emerge action' syntax in favor of 'emerge --action' svn path=/main/trunk/; revision=2742 --- diff --git a/bin/emerge b/bin/emerge index e0be7e05e..e3636654d 100755 --- a/bin/emerge +++ b/bin/emerge @@ -271,8 +271,7 @@ for x in cmdline: sys.exit(1) elif (not myaction) and (x in actions): if x not in ["system", "world"]: - #print red("*** Deprecated use of action '"+x+"'") - pass + print red("*** Deprecated use of action '%s', use '--%s' instead" % (x,x)) if myaction: print print red("!!!")+green(" Multiple actions requested... Please choose one only.") diff --git a/pym/emergehelp.py b/pym/emergehelp.py index 322c5f951..28a78a126 100644 --- a/pym/emergehelp.py +++ b/pym/emergehelp.py @@ -14,7 +14,7 @@ def shorthelp(): print " "+turquoise("emerge")+" [ "+green("options")+" ] [ "+green("action")+" ] < "+turquoise("system")+" | "+turquoise("world")+" >" print " "+turquoise("emerge")+" < "+turquoise("--sync")+" | "+turquoise("--metadata")+" | "+turquoise("--info")+" >" print " "+turquoise("emerge")+" "+turquoise("--resume")+" [ "+green("--pretend")+" | "+green("--ask")+" | "+green("--skipfirst")+" ]" - print " "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("system")+" | "+green("config")+" | "+green("sync")+" ] " + print " "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("system")+" | "+green("config")+" | "+green("--sync")+" ] " print bold("Options:")+" "+green("-")+"["+green("abcCdDefhikKlnNoOpPsSuvV")+"] ["+green("--oneshot")+"] ["+green("--newuse")+"] ["+green("--noconfmem")+"]" print " ["+green("--columns")+"] ["+green("--nospinner")+"]" print bold("Actions:")+" [ "+green("--clean")+" | "+green("--depclean")+" | "+green("--prune")+" | "+green("--regen")+" | "+green("--search")+" | "+green("--unmerge")+" ]"