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

Make file CLI flags and usage messages uniform #894

Merged
merged 1 commit into from
Jan 8, 2022

Conversation

pudelkoM
Copy link
Member

@pudelkoM pudelkoM commented Jan 7, 2022

The CLI flags related to TLS are ambiguous whether they expect a path to a file, or the actually file content. Established convention is using <flag>_file for files. This PR fixes this.

It also removes the duplicate usage strings in both the docs and code, as they are auto-generated by gflags with the --helpshort flag. Some were already outdated and incorrect.

@codecov
Copy link

codecov bot commented Jan 7, 2022

Codecov Report

Merging #894 (e2d814e) into main (f632af8) will not change coverage.
The diff coverage is 88.88%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #894   +/-   ##
=======================================
  Coverage   78.80%   78.80%           
=======================================
  Files         336      336           
  Lines       30128    30128           
=======================================
  Hits        23742    23742           
  Misses       6386     6386           
Impacted Files Coverage Δ
stratum/lib/security/credentials_manager.cc 85.71% <88.88%> (ø)

@pudelkoM pudelkoM changed the title Make file CLI flags and usage message uniform Make file CLI flags and usage messages uniform Jan 7, 2022
@pudelkoM pudelkoM merged commit 3bd246e into main Jan 8, 2022
@pudelkoM pudelkoM deleted the file-cli-flags-and-usage branch January 8, 2022 02:56
Yi-Tseng pushed a commit that referenced this pull request Jan 9, 2022
The CLI flags related to TLS are ambiguous whether they expect a path to a file, or the actually file content. Established convention is using `<flag>_file` for files. This PR fixes this.

It also removes the duplicate usage strings in both the docs and code, as they are auto-generated by gflags with the `--helpshort` flag. Some were already outdated and incorrect.
ffoulkes added a commit to ipdk-io/stratum-dev that referenced this pull request Jan 13, 2024
Signed-off-by: Derek G Foster <derek.foster@intel.com>
ffoulkes added a commit to ipdk-io/stratum-dev that referenced this pull request Jan 17, 2024
Signed-off-by: Derek G Foster <derek.foster@intel.com>
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

Successfully merging this pull request may close these issues.

None yet

1 participant