tobami / littlechef

Cook with Chef without a Chef Server
Apache License 2.0
473 stars 70 forks source link

Migrate to argparse #170

Closed darioblanco closed 11 years ago

darioblanco commented 11 years ago

This branch follows the Upgrading optparse code directives.

Users with Python 2.6 should install argparse using pip (pip install argparse). Python 2.7+ already include argparse. My approach here is to install argparse as a dependency (which will be already resolved in greater Python versions).

argparse.RawDescriptionHelpFormatter allows the description and epilogue to have their own format (to not being printed in one line).

The epilogue will print fabric's available commands.

tobami commented 11 years ago

Great, thanks!