{"action":"closed","number":47,"pull_request":{"url":"https://api.github.com/repos/ome/omego/pulls/47","id":17955239,"html_url":"https://github.com/ome/omego/pull/47","diff_url":"https://github.com/ome/omego/pull/47.diff","patch_url":"https://github.com/ome/omego/pull/47.patch","issue_url":"https://api.github.com/repos/ome/omego/issues/47","number":47,"state":"closed","locked":false,"title":"Use the combined ArgparseConfigParser from openmicroscopy/yaclifw#5","user":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"body":"See openmicroscopy/yaclifw#5\r\nEssentially most arguments on the command line can also be specified in a config file (command line takes precedence).\r\n\r\nOther changes:\r\n* I've completely removed the parsing of environment variables (`EnvDefault`)\r\n* Default branch changed from `OMERO-trunk` to `OMERO-5.0-latest` (`omego` defaults to `ICE=3.5` if a label isn't given)\r\n\r\nomego-test.cfg:\r\n```\r\n#omego configuration file\r\n[main]\r\nbranch = OMERO-5.0-latest\r\nverbose = 1\r\n\r\n# Note configuration sections are named after a subcommand\r\n# so for example settings in [db] will only apply to omego db,\r\n# and not subcommand which use the same options such as\r\n# `omego upgrade`. Instead they should go in [main]\r\ndbhost = localhost\r\ndbname = omero-test\r\ndbuser = omero\r\ndbpass = omero\r\n\r\n[download]\r\n# Uses the default branch from above\r\nskipunzip = True\r\n\r\n[install]\r\nbranch = OMERO-5.0-merge-build\r\nsym = OMERO-50-test\r\ninitdb = True\r\n\r\n[upgrade]\r\nbranch = OMERO-5.0-merge-build\r\nsym = OMERO-50-test\r\nupgradedb = True\r\n```\r\nFor example you should be able to do\r\n`omego download -c omego-test.cfg cpp`\r\nequivalent to passing --branch OMERO-5.0-latest --skipunzip\r\n\r\n` omego upgrade -c omego-test.cfg`\r\nequivalent to passing --branch OMERO-5.0-merge-build --sym OMERO-50-test --upgradedb --db...\r\n\r\nNote that `omego install` doesn't actually work so don't bother trying it\r\n\r\nWhen testing also be aware that I haven't fixed up the args, so there are some flags that aren't really flags (they require a true/false string arg).","created_at":"2014-07-03T16:42:24Z","updated_at":"2016-01-25T11:11:06Z","closed_at":"2016-01-25T11:11:06Z","merged_at":null,"merge_commit_sha":"82208f3f0dcf439139ff319cfae2719bc09c6ff6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ome/omego/pulls/47/commits","review_comments_url":"https://api.github.com/repos/ome/omego/pulls/47/comments","review_comment_url":"https://api.github.com/repos/ome/omego/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ome/omego/issues/47/comments","statuses_url":"https://api.github.com/repos/ome/omego/statuses/4c77ae868536a4e614be9fbaa39c90a0df82845e","head":{"label":"manics:argparse_config_file+yaclifw","ref":"argparse_config_file+yaclifw","sha":"4c77ae868536a4e614be9fbaa39c90a0df82845e","user":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"repo":{"id":11530979,"name":"omego","full_name":"manics/omego","owner":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manics/omego","description":"OME, Go! Installation and administration tool for OME applications.","fork":true,"url":"https://api.github.com/repos/manics/omego","forks_url":"https://api.github.com/repos/manics/omego/forks","keys_url":"https://api.github.com/repos/manics/omego/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manics/omego/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manics/omego/teams","hooks_url":"https://api.github.com/repos/manics/omego/hooks","issue_events_url":"https://api.github.com/repos/manics/omego/issues/events{/number}","events_url":"https://api.github.com/repos/manics/omego/events","assignees_url":"https://api.github.com/repos/manics/omego/assignees{/user}","branches_url":"https://api.github.com/repos/manics/omego/branches{/branch}","tags_url":"https://api.github.com/repos/manics/omego/tags","blobs_url":"https://api.github.com/repos/manics/omego/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manics/omego/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manics/omego/git/refs{/sha}","trees_url":"https://api.github.com/repos/manics/omego/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manics/omego/statuses/{sha}","languages_url":"https://api.github.com/repos/manics/omego/languages","stargazers_url":"https://api.github.com/repos/manics/omego/stargazers","contributors_url":"https://api.github.com/repos/manics/omego/contributors","subscribers_url":"https://api.github.com/repos/manics/omego/subscribers","subscription_url":"https://api.github.com/repos/manics/omego/subscription","commits_url":"https://api.github.com/repos/manics/omego/commits{/sha}","git_commits_url":"https://api.github.com/repos/manics/omego/git/commits{/sha}","comments_url":"https://api.github.com/repos/manics/omego/comments{/number}","issue_comment_url":"https://api.github.com/repos/manics/omego/issues/comments{/number}","contents_url":"https://api.github.com/repos/manics/omego/contents/{+path}","compare_url":"https://api.github.com/repos/manics/omego/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manics/omego/merges","archive_url":"https://api.github.com/repos/manics/omego/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manics/omego/downloads","issues_url":"https://api.github.com/repos/manics/omego/issues{/number}","pulls_url":"https://api.github.com/repos/manics/omego/pulls{/number}","milestones_url":"https://api.github.com/repos/manics/omego/milestones{/number}","notifications_url":"https://api.github.com/repos/manics/omego/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manics/omego/labels{/name}","releases_url":"https://api.github.com/repos/manics/omego/releases{/id}","deployments_url":"https://api.github.com/repos/manics/omego/deployments","created_at":"2013-07-19T15:32:57Z","updated_at":"2015-05-27T19:38:20Z","pushed_at":"2016-01-24T17:01:20Z","git_url":"git://github.com/manics/omego.git","ssh_url":"git@github.com:manics/omego.git","clone_url":"https://github.com/manics/omego.git","svn_url":"https://github.com/manics/omego","homepage":"","size":2582,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ome:master","ref":"master","sha":"957e5b49c79c2d8239af06fc6740ffdbfb7572e6","user":{"login":"ome","id":1831717,"avatar_url":"https://avatars.githubusercontent.com/u/1831717?v=3","gravatar_id":"","url":"https://api.github.com/users/ome","html_url":"https://github.com/ome","followers_url":"https://api.github.com/users/ome/followers","following_url":"https://api.github.com/users/ome/following{/other_user}","gists_url":"https://api.github.com/users/ome/gists{/gist_id}","starred_url":"https://api.github.com/users/ome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ome/subscriptions","organizations_url":"https://api.github.com/users/ome/orgs","repos_url":"https://api.github.com/users/ome/repos","events_url":"https://api.github.com/users/ome/events{/privacy}","received_events_url":"https://api.github.com/users/ome/received_events","type":"Organization","site_admin":false},"repo":{"id":8309594,"name":"omego","full_name":"ome/omego","owner":{"login":"ome","id":1831717,"avatar_url":"https://avatars.githubusercontent.com/u/1831717?v=3","gravatar_id":"","url":"https://api.github.com/users/ome","html_url":"https://github.com/ome","followers_url":"https://api.github.com/users/ome/followers","following_url":"https://api.github.com/users/ome/following{/other_user}","gists_url":"https://api.github.com/users/ome/gists{/gist_id}","starred_url":"https://api.github.com/users/ome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ome/subscriptions","organizations_url":"https://api.github.com/users/ome/orgs","repos_url":"https://api.github.com/users/ome/repos","events_url":"https://api.github.com/users/ome/events{/privacy}","received_events_url":"https://api.github.com/users/ome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ome/omego","description":"OME, Go! Installation and administration tool for OME applications.","fork":false,"url":"https://api.github.com/repos/ome/omego","forks_url":"https://api.github.com/repos/ome/omego/forks","keys_url":"https://api.github.com/repos/ome/omego/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ome/omego/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ome/omego/teams","hooks_url":"https://api.github.com/repos/ome/omego/hooks","issue_events_url":"https://api.github.com/repos/ome/omego/issues/events{/number}","events_url":"https://api.github.com/repos/ome/omego/events","assignees_url":"https://api.github.com/repos/ome/omego/assignees{/user}","branches_url":"https://api.github.com/repos/ome/omego/branches{/branch}","tags_url":"https://api.github.com/repos/ome/omego/tags","blobs_url":"https://api.github.com/repos/ome/omego/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ome/omego/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ome/omego/git/refs{/sha}","trees_url":"https://api.github.com/repos/ome/omego/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ome/omego/statuses/{sha}","languages_url":"https://api.github.com/repos/ome/omego/languages","stargazers_url":"https://api.github.com/repos/ome/omego/stargazers","contributors_url":"https://api.github.com/repos/ome/omego/contributors","subscribers_url":"https://api.github.com/repos/ome/omego/subscribers","subscription_url":"https://api.github.com/repos/ome/omego/subscription","commits_url":"https://api.github.com/repos/ome/omego/commits{/sha}","git_commits_url":"https://api.github.com/repos/ome/omego/git/commits{/sha}","comments_url":"https://api.github.com/repos/ome/omego/comments{/number}","issue_comment_url":"https://api.github.com/repos/ome/omego/issues/comments{/number}","contents_url":"https://api.github.com/repos/ome/omego/contents/{+path}","compare_url":"https://api.github.com/repos/ome/omego/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ome/omego/merges","archive_url":"https://api.github.com/repos/ome/omego/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ome/omego/downloads","issues_url":"https://api.github.com/repos/ome/omego/issues{/number}","pulls_url":"https://api.github.com/repos/ome/omego/pulls{/number}","milestones_url":"https://api.github.com/repos/ome/omego/milestones{/number}","notifications_url":"https://api.github.com/repos/ome/omego/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ome/omego/labels{/name}","releases_url":"https://api.github.com/repos/ome/omego/releases{/id}","deployments_url":"https://api.github.com/repos/ome/omego/deployments","created_at":"2013-02-20T09:06:17Z","updated_at":"2015-02-25T17:36:11Z","pushed_at":"2016-01-24T17:08:10Z","git_url":"git://github.com/ome/omego.git","ssh_url":"git@github.com:ome/omego.git","clone_url":"https://github.com/ome/omego.git","svn_url":"https://github.com/ome/omego","homepage":"","size":14956,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ome/omego/pulls/47"},"html":{"href":"https://github.com/ome/omego/pull/47"},"issue":{"href":"https://api.github.com/repos/ome/omego/issues/47"},"comments":{"href":"https://api.github.com/repos/ome/omego/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/ome/omego/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/ome/omego/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ome/omego/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/ome/omego/statuses/4c77ae868536a4e614be9fbaa39c90a0df82845e"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":7,"review_comments":0,"commits":8,"additions":101,"deletions":84,"changed_files":8}}