Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 218439

Summary: emerge --help output not aligned
Product: Portage Development Reporter: Mikael Magnusson <mikachu>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: minor Keywords: InVCS
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    

Description Mikael Magnusson 2008-04-19 16:53:00 UTC
emerge --help produces this output here (sans colors):

emerge: the other white meat (command-line interface to the Portage system)
Usage:
   emerge [ options ] [ action ] [ ebuildfile | tbz2file | dependency ] [ ... ]
   emerge [ options ] [ action ] < system | world >
   emerge < --sync | --metadata | --info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge --help [ system | world | --sync ] 
Options: -[abBcCdDefgGhkKlnNoOpqPsStuvV] [--oneshot] [--newuse] [--noconfmem]
                                          [ --color < y | n >  ] [ --columns ]
                                     [ --reinstall changed-use ] [--nospinner]
                    [ --complete-graph  ] [ --deep  ] [--with-bdeps < y | n > ]
Actions: [ --clean | --depclean | --prune | --regen | --search | --unmerge ]

   For more help try 'emerge --help --verbose' or consult the man page.
Comment 1 Zac Medico gentoo-dev 2008-04-20 22:08:10 UTC
Maybe we should just use the default option formatter from python's optparse module. Anyway, does this look any better?

emerge: the other white meat (command-line interface to the Portage system)
Usage:
   emerge [ options ] [ action ] [ ebuildfile | tbz2file | dependency ] [ ... ]
   emerge [ options ] [ action ] < system | world >
   emerge < --sync | --metadata | --info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge --help [ system | world | --sync ]
Options: -[abBcCdDefgGhkKlnNoOpqPsStuvV]
         [ --columns   ] [ --deep      ] [ --newuse    ] [ --noconfmem ]
         [ --oneshot   ] [ --nospinner ]
         [ --color < y | n >           ] [ --complete-graph            ]
         [ --reinstall changed-use     ] [ --with-bdeps < y | n >      ]
Actions: [ --clean | --depclean | --prune | --regen | --search | --unmerge ]
Comment 2 Mikael Magnusson 2008-04-20 22:55:32 UTC
Probably hard to make it worse :) but yeah, that looks pretty good to me.
Comment 3 Zac Medico gentoo-dev 2008-04-21 21:37:33 UTC
Thanks, this is fixed in 2.1.5_rc6.