command :init do |c| c.syntax = 'loom init [options]' c.summary = 'Configures the working directory as a loom project.' c.description = 'Configuration for the loom toolbelt is done through a .loomconfig file. All projects that wish to use the loom commands must be configured with a .loomconfig file in the project root. calling "loom init" automatically configures the project.' c.example 'initialize and configure loom project', 'loom init' c.example 'initialize in a specific directory', 'loom init --dir /Path/To/My/Project' c.option '--dir STRING', String, 'Specify a directory to configure' c.action do |args, options| options.default :dir => "" configure_directory options.dir end end