Skip to content

You must provide at least 1 argument #54

@andruwik777

Description

@andruwik777

My enviroment:
PHP v.5.3.13
Pear's Console_CommandLine v.1.2.0
protoc.exe v.2.6.1

Steps:

  1. Installed Protobuf-PHP library using pear:
    pear channel-discover pear.pollinimini.net
    pear install drslump/Protobuf-beta
  2. Tried to generate PHP from protobuf (protoc.exe, protoc-gen-php.bat and tutorial.proto located in the same directory "P:\pear"):
    protoc-gen-php.bat -i . tutorial.proto

Output:


P:\pear>protoc-gen-php.bat -o ./build -i . tutorial.proto
X-Powered-By: PHP/5.3.13
Content-type: text/html

Protobuf-PHP 0.9.4 by Ivan -DrSlump- Montes

Error: You must provide at least 1 argument.
Type "P:\pear\protoc-gen-php --help" to get help.


P.S. There are also similar question without answer on stackoverflow.com (http://stackoverflow.com/questions/30478277/parse-proto-to-php-class)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions