Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

po->opts #37

Closed
danpovey opened this issue Jul 31, 2015 · 4 comments
Closed

po->opts #37

danpovey opened this issue Jul 31, 2015 · 4 comments

Comments

@danpovey
Copy link
Contributor

In parts of the code where type OptionsItf is used, for historical reasons the variable name is typically "po" (for ParseOptions). I think this is confusing and should be changed. If someone could find time to do this, that would be helpful. Do it by script if you want.

@naxingyu
Copy link
Contributor

Like "op" for OptionParser, as in Python?

@danpovey
Copy link
Contributor Author

Previously it was "po" as abbrev for the ParseOptions class. But now an
abstract interface OptionsItf is used, so the variable name "opts" would be
more suitable.
Dan

On Thu, Jul 30, 2015 at 6:53 PM, Xingyu Na notifications@github.com wrote:

Like "op" for OptionParser, as in Python?


Reply to this email directly or view it on GitHub
#37 (comment).

@vdp
Copy link
Contributor

vdp commented Jul 31, 2015

In addition to the dumb PR above(I thought "oh, super easy, let's test how PRs work"), I've tried to use the refactoring capabilities of QtCreator, but changing "po->Register(" to "opts->Register(", breaks the indentation for the help message on the next line, and to be honest editing all these files manually, or writing a script doesn't appeal that much to me at the moment...

@danpovey
Copy link
Contributor Author

I would be OK with a patch that breaks the indentation; we can fix that
gradually as we visit each file.
Dan

On Fri, Jul 31, 2015 at 2:09 AM, Vassil Panayotov notifications@github.com
wrote:

In addition to the dumb PR above(I thought "oh, super easy, let's test how
PRs work"), I've tried to use the refactoring capabilities of QtCreator,
but changing "op->Register(" to "opts->Register(", breaks the indentation
for the help message on the next line, and to be honest editing all these
files manually, or writing a script doesn't appeal that much to me at the
moment...


Reply to this email directly or view it on GitHub
#37 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants