Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few random cmd2 recommendations #5

Open
tleonhardt opened this issue Oct 13, 2018 · 1 comment
Open

Few random cmd2 recommendations #5

tleonhardt opened this issue Oct 13, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tleonhardt
Copy link

I just took a quick look at the clanvas source code and have a few recommendations regarding the use of cmd2 that you may benefit from:

  • Consider loading your resource file via the startup_script optional argument to the cmd2.Cmd initializer
  • Consider also specifying a persistent readline history file in the initializer as well
  • For commands which use one of the argparse decorators, consider using ACArgumentParser from cmd2 instead of argparse.ArgumentParser - it has several benefits when it comes to automatic tab completion
  • As of cmd2 0.9.5, you no longer need to init colorama in your app code, because that is done by cmd2
@rowdyrotifer
Copy link
Owner

Thanks! Glad to see there are some nice and easy ways to make more improvements thanks to cmd2's simple interfaces.

@rowdyrotifer rowdyrotifer self-assigned this Oct 13, 2018
@rowdyrotifer rowdyrotifer added the enhancement New feature or request label Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants