Skip to content
  • Kasper Timm Hansen's avatar
    6629d51a
    Rely on Rails::Command's help output. · 6629d51a
    Kasper Timm Hansen authored
    We end up with:
    
    ```
    Usage:
      bin/rails routes [options]
    
    Options:
      -c, [--controller=CONTROLLER]      # Filter by a specific controller, e.g. PostsController or Admin::PostsController.
      -g, [--grep=GREP]                  # Grep routes by a specific pattern.
      -E, [--expanded], [--no-expanded]  # Print routes expanded vertically with parts explained.
    ```
    
    which does miss the bit about routes being printed in order.
    
    Also:
    
    * Renames options to ease help output readability, then clarifies each option.
    * Fixes a bunch of indentation.
    6629d51a
    Rely on Rails::Command's help output.
    Kasper Timm Hansen authored
    We end up with:
    
    ```
    Usage:
      bin/rails routes [options]
    
    Options:
      -c, [--controller=CONTROLLER]      # Filter by a specific controller, e.g. PostsController or Admin::PostsController.
      -g, [--grep=GREP]                  # Grep routes by a specific pattern.
      -E, [--expanded], [--no-expanded]  # Print routes expanded vertically with parts explained.
    ```
    
    which does miss the bit about routes being printed in order.
    
    Also:
    
    * Renames options to ease help output readability, then clarifies each option.
    * Fixes a bunch of indentation.
Loading