{"action":"created","issue":{"url":"https://api.github.com/repos/bewest/argparse/issues/8","repository_url":"https://api.github.com/repos/bewest/argparse","labels_url":"https://api.github.com/repos/bewest/argparse/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/bewest/argparse/issues/8/comments","events_url":"https://api.github.com/repos/bewest/argparse/issues/8/events","html_url":"https://github.com/bewest/argparse/issues/8","id":164954357,"number":8,"title":"best practice for exporting all args","user":{"login":"vsoch","id":814322,"avatar_url":"https://avatars.githubusercontent.com/u/814322?v=3","gravatar_id":"","url":"https://api.github.com/users/vsoch","html_url":"https://github.com/vsoch","followers_url":"https://api.github.com/users/vsoch/followers","following_url":"https://api.github.com/users/vsoch/following{/other_user}","gists_url":"https://api.github.com/users/vsoch/gists{/gist_id}","starred_url":"https://api.github.com/users/vsoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsoch/subscriptions","organizations_url":"https://api.github.com/users/vsoch/orgs","repos_url":"https://api.github.com/users/vsoch/repos","events_url":"https://api.github.com/users/vsoch/events{/privacy}","received_events_url":"https://api.github.com/users/vsoch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-11T22:29:45Z","updated_at":"2016-07-12T00:26:59Z","closed_at":null,"body":"Is there a best practice / suggestion for exporting all arguments from a script that uses argparse? For example, I'm developing an application that needs to understand what inputs / types are allowed and required, and starting with a standard argument parser seems like the right way to go. Some possible ideas I've been thinking of are something that would use [inspect](https://docs.python.org/2/library/inspect.html), or having a standard template that returns the parse object. Ideally, any script using argparse should be able to be run through this function to produce some data structure that contains this information (with minimal requirements to customize the script with argparse)!"},"comment":{"url":"https://api.github.com/repos/bewest/argparse/issues/comments/231904831","html_url":"https://github.com/bewest/argparse/issues/8#issuecomment-231904831","issue_url":"https://api.github.com/repos/bewest/argparse/issues/8","id":231904831,"user":{"login":"vsoch","id":814322,"avatar_url":"https://avatars.githubusercontent.com/u/814322?v=3","gravatar_id":"","url":"https://api.github.com/users/vsoch","html_url":"https://github.com/vsoch","followers_url":"https://api.github.com/users/vsoch/followers","following_url":"https://api.github.com/users/vsoch/following{/other_user}","gists_url":"https://api.github.com/users/vsoch/gists{/gist_id}","starred_url":"https://api.github.com/users/vsoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsoch/subscriptions","organizations_url":"https://api.github.com/users/vsoch/orgs","repos_url":"https://api.github.com/users/vsoch/repos","events_url":"https://api.github.com/users/vsoch/events{/privacy}","received_events_url":"https://api.github.com/users/vsoch/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T00:26:59Z","updated_at":"2016-07-12T00:26:59Z","body":"right now my best workaround is to provide a template script with argparse that has a [function to return the parser](https://github.com/singularityware/singularity-python/blob/master/examples/singularity#L13)"}}
{"actor":{"display_login":"vsoch"}}