refinerycms CLI: Usage text refers to the command as 'rails' #1539

Closed
phiggins opened this Issue Mar 30, 2012 · 6 comments

Projects

None yet

3 participants

@phiggins
Contributor

I'm not sure you'll be able to do much about this since I'm guessing you're proxying the arguments to the rails command, but I was a bit confused:

[13:08:15 ~]$ refinerycms --help
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
                                 # Default: /Users/pete/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
  -b, [--builder=BUILDER]        # Path to a application builder (can be a filesystem path or URL)
  -m, [--template=TEMPLATE]      # Path to an application template (can be a filesystem path or URL)
      [--skip-gemfile]           # Don't create a Gemfile
      [--skip-bundle]            # Don't run bundle install
  -G, [--skip-git]               # Skip Git ignores and keeps
  -O, [--skip-active-record]     # Skip Active Record files
  -S, [--skip-sprockets]         # Skip Sprockets files
  -d, [--database=DATABASE]      # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
                                 # Default: sqlite3
  -j, [--javascript=JAVASCRIPT]  # Preconfigure for selected JavaScript library
                                 # Default: jquery
  -J, [--skip-javascript]        # Skip JavaScript files
      [--dev]                    # Setup the application with Gemfile pointing to your Rails checkout
      [--edge]                   # Setup the application with Gemfile pointing to Rails repository
  -T, [--skip-test-unit]         # Skip Test::Unit files
      [--old-style-hash]         # Force using old style hash (:foo => 'bar') on Ruby >= 1.9

Runtime options:
  -f, [--force]    # Overwrite files that already exist
  -p, [--pretend]  # Run but do not make any changes
  -q, [--quiet]    # Supress status output
  -s, [--skip]     # Skip files that already exist

Rails options:
  -h, [--help]     # Show this help message and quit
  -v, [--version]  # Show Rails version number and quit

Description:
    The 'rails new' command creates a new Rails application with a default
    directory structure and configuration at the path you specify.

    You can specify extra command-line arguments to be used every time
    'rails new' runs in the .railsrc configuration file in your home directory.

    Note that the arguments specified in the .railsrc file don't affect the
    defaults values shown above in this help message.

Example:
    rails new ~/Code/Ruby/weblog

    This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
    See the README in the newly created application to get going.
@parndt
Member
parndt commented Mar 30, 2012

@phiggins we'd have to make it respond to a bare set of things

@ugisozols
Member

Comments? ^

@ugisozols
Member

refinerycms --help produces:

this

@parndt
Member
parndt commented May 12, 2012

@ugisozols underscores are incorrect, we need to gsub them out.. I'll do that now.

@parndt
Member
parndt commented May 12, 2012

Also we can't guarantee that path to core even exists when packaged as a gem...

18:21:34: [issue_1538_1539±|1.9.3p194] /code/parndt/refinerycms$ ls -lah ~/.rvm/gems/ruby-1.9.3-p194/gems/refinerycms-core-2.0.3/
total 16
drwxr-xr-x    9 parndt  staff   306B 20 Apr 16:12 .
drwxr-xr-x  722 parndt  staff    24K 12 May 14:46 ..
drwxr-xr-x    7 parndt  staff   238B 20 Apr 16:12 app
drwxr-xr-x    5 parndt  staff   170B 20 Apr 16:12 config
drwxr-xr-x    6 parndt  staff   204B 20 Apr 16:12 lib
-rw-r--r--    1 parndt  staff   1.1K 20 Apr 16:12 license.md
drwxr-xr-x    7 parndt  staff   238B 20 Apr 16:12 public
-rw-r--r--    1 parndt  staff   1.5K 20 Apr 16:12 refinerycms-core.gemspec
drwxr-xr-x    7 parndt  staff   238B 20 Apr 16:12 spec
18:21:44: [issue_1538_1539±|1.9.3p194] /code/parndt/refinerycms$ ls -lah ~/.rvm/gems/ruby-1.9.3-p194/gems/refinerycms-2.0.3/
total 0
drwxr-xr-x    5 parndt  staff   170B 20 Apr 16:12 .
drwxr-xr-x  722 parndt  staff    24K 12 May 14:46 ..
drwxr-xr-x    3 parndt  staff   102B 20 Apr 16:12 bin
drwxr-xr-x    4 parndt  staff   136B 20 Apr 16:12 lib
drwxr-xr-x    3 parndt  staff   102B 20 Apr 16:12 templates

They are two separate gems.

@parndt
Member
parndt commented May 12, 2012

Closing issue in favour of #1655

@parndt parndt closed this May 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment