Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Program options arg types and Bash completion #614

Merged
merged 2 commits into from
Apr 6, 2017

Conversation

rakhimov
Copy link
Contributor

@rakhimov rakhimov commented Apr 6, 2017

This additional information is helpful for deducing the hints.
Only bool and path arguments are added.
Adding type information with Boost program options
is verbose and repetitive due to lack of reflection.
Macros can help, but it is still ugly.

The refactoring removes
most hard-coded options in the completion script.
The suggestions are deduced from argument types (path, bool).

Issue #611


By submitting this pull-request, I confirm the following:

  • I have read and understood the Contributing Guide.
  • I have checked that another pull-request for this purpose does not exist.
  • I have considered and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used and that this pull-request may be closed by the will of the maintainer.
  • I give this submission freely under the BSD 3-clause license.

rakhimov added 2 commits April 5, 2017 19:41
This additional information is helpful for deducing the hints.
Only bool and path arguments are added.
Adding type information with Boost program options
is verbose and repetitive due to lack of reflection.
Macros can help, but it is still ugly.

Issue monero-project#611
The refactoring removes
most hard-coded options in the completion script.
The suggestions are deduced from argument types (path, bool).

Issue monero-project#611.
Copy link
Collaborator

@anonimal anonimal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rakhimov Very cool 👍

Referencing #610

@anonimal anonimal merged commit 838100a into monero-project:master Apr 6, 2017
anonimal added a commit that referenced this pull request Apr 6, 2017
838100a Packager: refactor bash completion with type info (rakhimov)
26fdddd Config: add cmd-line option argument type names (rakhimov)
@rakhimov rakhimov deleted the bash-completion branch June 6, 2018 23:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants