jupyter-incubator / contentmanagement

Jupyter Content Management Extensions
Other
78 stars 26 forks source link

Show only applicable options #37

Closed parente closed 8 years ago

parente commented 8 years ago

A bit more user friendliness: Don't show old install/activate options in notebook>=4.2

So in 4.2 we see:

(notebook-4.2)parente@aether ~/projects/jupyter/contentmanagement (subset-cli-opts●)$ jupyter cms
Utilities for managing the jupyter_cms extension

Subcommands
-----------

Subcommands are launched as `jupyter_cms extension cmd [args]`. For information
on using subcommand 'cmd', do: `jupyter_cms extension cmd -h`.

quick-setup
    Install and enable everything in the package
quick-remove
    Disable and uninstall everything in the package

and in versions prior to that:

(notebook-4.1)parente@aether ~/projects/jupyter/contentmanagement (subset-cli-opts)$ jupyter cms
Utilities for managing the jupyter_cms extension

Subcommands
-----------

Subcommands are launched as `jupyter_cms extension cmd [args]`. For information
on using subcommand 'cmd', do: `jupyter_cms extension cmd -h`.

activate
    Activate the extension
deactivate
    Deactivate the extension
install
    Install the extension
jtyberg commented 8 years ago

+1 for less user confusion