refactor command-line interface for doing snippets since that is probably the primary use case