[PQM/MERGE] Convert PQM to use optparse

Daniel Watkins daniel at daniel-watkins.co.uk
Wed Jul 9 09:05:17 BST 2008


On Tue, 08 Jul 2008 11:22:48 -0500
John Arbash Meinel <john at arbash-meinel.com> wrote:
> I would mention that I really dislike top-level code. I personally
> recommend the style of:
> 
> 
> def main(args?):
> ~  do stuff as a main function
> 
> 
> if __name__ == '__main__':
> ~  sys.exit(main(sys.argv[1:]?))
> 
> I don't know if that is possible with how pqm is layered, etc. I just
> find it nicer to work with.

At the moment, there's a large chunk of code in bin/pqm that is
top-level. I'd prefer to wait and fix this when I'm going through the
script with an eye to cleaning it up as a whole, so I have a better
idea of what should go where.

-- 
Daniel Watkins (Odd_Bloke)



More information about the bazaar mailing list