-
Notifications
You must be signed in to change notification settings - Fork 4
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
Change programs' interfaces #17
Conversation
See also #14. |
Not a big deal but what do you think about something more descriptive like |
Agreed. |
|
4cfc566
to
4bb661c
Compare
The only doubt I have is related to using However, maybe we change approach here, and define yet another option |
5155f0e
to
361d8de
Compare
Please treat this pull request as a work-in-progress for now. |
I don't really see any issues with having |
I have implemented this change already, and IMO it makes things bit cleaner. I can revert it though if someone doesn't like it. |
--component-version is a better name than --version, as --version conventionally means "print program version and exit".
--component-name is a better name than just --component, as it is more descriptive. But most importantly, it is consistent with a recently added --component-version.
Introduce option --component-git-ref which supersedes --git option, and replaces --component-version in context of former --git option. In other words, --component-git-ref REF replaces the sequence of --git --component-version REF options. This change is expected to simplify program interface, make option names more obvious and consistent, and reduce confusion.
Write command arguments parser similar to one in install_gpg_component.sh script.
361d8de
to
f23860d
Compare
@skalee the build is failing. Does it matter? |
@ronaldtse It is out of scope of this pull request. Nevertheless, these failures are not false positives. Fixes will be included in further pull requests. |
In
In
Documentation has been updated for both scripts. Fixes #14. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the CI issues can be addressed in subsequent PRs, but just noting here that IIRC gpg 2.1's executable name is gpg2 by default (configurable), so the which gpg
check won't really work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @skalee !
Script interfaces have been changed in #17, however documentation was only partly updated. This commit fixes that.
* Update README for --suite-version option Script interfaces have been changed in #17, however documentation was only partly updated. This commit fixes that. * Slightly reorganize README Introduce "Tips & tricks" section, in which some most important options and use cases can be described in detail. * Slightly improve "Prerequisites" section in README * Improve description of scripts * Split a very long line in README
For this option,
--at
is a better name than--version
, as--version
conventionally means "print program version and exit".This is a breaking change.
cc: @ronaldtse, @dewyatt.