{"action":"created","issue":{"url":"https://api.github.com/repos/pomm-project/Cli/issues/20","labels_url":"https://api.github.com/repos/pomm-project/Cli/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/pomm-project/Cli/issues/20/comments","events_url":"https://api.github.com/repos/pomm-project/Cli/issues/20/events","html_url":"https://github.com/pomm-project/Cli/issues/20","id":73371593,"number":20,"title":"Absolute Path with option --prefix-dir","user":{"login":"Pierozi","id":5133487,"avatar_url":"https://avatars.githubusercontent.com/u/5133487?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierozi","html_url":"https://github.com/Pierozi","followers_url":"https://api.github.com/users/Pierozi/followers","following_url":"https://api.github.com/users/Pierozi/following{/other_user}","gists_url":"https://api.github.com/users/Pierozi/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierozi/subscriptions","organizations_url":"https://api.github.com/users/Pierozi/orgs","repos_url":"https://api.github.com/users/Pierozi/repos","events_url":"https://api.github.com/users/Pierozi/events{/privacy}","received_events_url":"https://api.github.com/users/Pierozi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-05T17:11:42Z","updated_at":"2015-05-06T08:23:37Z","closed_at":null,"body":"Hello,\r\nI discover a light bug with prefix option, the first slash are remove by `ltrim`.\r\nI don't know why `ltrim` is there, that should be `rtrim` no ? for avoid double slash at right if path end with slash.\r\n\r\n```php\r\n# https://github.com/pomm-project/Cli/blob/master/sources/lib/Command/SchemaAwareCommand.php#L138\r\n$elements =\r\n  [\r\n    ltrim($this->prefix_dir, '/'),\r\n    $prefix_ns,\r\n    Inflector::studlyCaps($config_name),\r\n    Inflector::studlyCaps(sprintf(\"%s_schema\", $this->schema)),\r\n    $extra_dir,\r\n    sprintf(\"%s%s.php\", Inflector::studlyCaps($file_name), $file_suffix)\r\n  ];\r\n```\r\n\r\n```bash\r\n$ php /app/vendor/bin/pomm.php pomm:generate:schema-all -b /app/.pomm_cli_bootstrap.php \\ \r\n --prefix-dir /app/src//// \\\r\n --prefix-ns \"\\Plab\\Iced\\Core\" \\\r\n --psr4\r\n\r\n# with ltrim\r\napp/src/////Model/CatalogSchema/AutoStructure/Attribute.php\r\n\r\n# with rtrim\r\n/app/src/Model/CatalogSchema/AutoStructure/Attribute.php\r\n\r\n# when ltrim removed\r\n/app/src/////Model/CatalogSchema/AutoStructure/Attribute.php"},"comment":{"url":"https://api.github.com/repos/pomm-project/Cli/issues/comments/99375611","html_url":"https://github.com/pomm-project/Cli/issues/20#issuecomment-99375611","issue_url":"https://api.github.com/repos/pomm-project/Cli/issues/20","id":99375611,"user":{"login":"Pierozi","id":5133487,"avatar_url":"https://avatars.githubusercontent.com/u/5133487?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierozi","html_url":"https://github.com/Pierozi","followers_url":"https://api.github.com/users/Pierozi/followers","following_url":"https://api.github.com/users/Pierozi/following{/other_user}","gists_url":"https://api.github.com/users/Pierozi/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierozi/subscriptions","organizations_url":"https://api.github.com/users/Pierozi/orgs","repos_url":"https://api.github.com/users/Pierozi/repos","events_url":"https://api.github.com/users/Pierozi/events{/privacy}","received_events_url":"https://api.github.com/users/Pierozi/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T08:23:37Z","updated_at":"2015-05-06T08:23:37Z","body":"You right, BC-Break would be bad.\r\neven if add `'/'` at first is the real error from user.\r\n\r\nOption `--absolute-dir` seems good choice :+1: "}}