lib/fig/command/options.rb
# This will be the base package, unless we're publishing (in which case it's
# the name to publish to).
This will be the base package, unless we're publishing (in which case it's
the name to publish to).
This will be the base package unless we ' re publishing ( in which case it ' s the name to publish to ) .
def derive_primary_descriptor(raw_string)
    return if raw_string.nil?
    @descriptor = Fig::PackageDescriptor.parse(
      raw_string,
      :name    => :required,
      :version => :required,
      :validation_context => ' specified on command line'
    )
    if @descriptor.config && config()
      $stderr.puts \
        %Q<Cannot specify both --config and a config in the descriptor "#{raw_string}".>
      @exit_code = 1
    end
    return
  end
def derive_primary_descriptor ( raw_string ) return if raw_string . nil? @descriptor = Fig :: PackageDescriptor . parse ( raw_string , :name => :required , :version => :required , :validation_context => ' specified on command line' ) if @descriptor . config && config ( ) $stderr . puts %Q<Cannot specify both --config and a config in the descriptor "#{raw_string}".> @exit_code = 1 end return end
This will be the base package, unless we're publishing (in which case it's
the name to publish to).
This will be the base package unless we ' re publishing ( in which case it ' s the name to publish to ) .
raw_string