Skip to content
  • Petrik's avatar
    718814a4
    Improve help for Rake tasks · 718814a4
    Petrik authored
    
    
    When running `bin/rails -h` the following messages is shown:
    
    > All commands can be run with -h (or --help) for more information.
    
    This doesn't apply to the commands that are Rake tasks like db:migrate.
    If you run `bin/rails db:migrate -h` you'll get the Rake help, which
    can be confusing...
    
    Instead, if we replace the `-h` argument with `--describe db:migrate`
    Rails outputs the Rake task descriptions, which are a lot more helpful:
    
        rails db:migrate
            Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog).
    
    Co-authored-by: default avatarJonathan Hefner <jonathan@hefner.pro>
    718814a4
    Improve help for Rake tasks
    Petrik authored
    
    
    When running `bin/rails -h` the following messages is shown:
    
    > All commands can be run with -h (or --help) for more information.
    
    This doesn't apply to the commands that are Rake tasks like db:migrate.
    If you run `bin/rails db:migrate -h` you'll get the Rake help, which
    can be confusing...
    
    Instead, if we replace the `-h` argument with `--describe db:migrate`
    Rails outputs the Rake task descriptions, which are a lot more helpful:
    
        rails db:migrate
            Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog).
    
    Co-authored-by: default avatarJonathan Hefner <jonathan@hefner.pro>
Loading