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

Fix input options handling dashes #19

Closed
astrogeco opened this issue Aug 10, 2020 · 0 comments · Fixed by #24 or #35
Closed

Fix input options handling dashes #19

astrogeco opened this issue Aug 10, 2020 · 0 comments · Fixed by #24 or #35
Labels
enhancement New feature or request
Milestone

Comments

@astrogeco
Copy link
Contributor

Describe the bug
The "help" option is triggered by -help which only uses one dash. Full-word options should use double dashes.

To Reproduce
See code

if ((argc != 2) || (strncmp(argv[1], "-help", 100) == 0))
    {
        printf("\ncFE TS CRC calculator: \%s\n", CFE_TS_CRC_VERSION_STRING);
        printf("\nUsage: cfe_ts_crc [filename]\n");
        exit(0);
    }

Expected behavior
Use --help instead

Code snips
If applicable, add references to the software.

System observed on:
Source code

Additional context
None

Reporter Info
Gerardo E. Cruz-Ortiz, NASA-GSFC

@astrogeco astrogeco added the bug Something isn't working label Aug 10, 2020
martintc added a commit to martintc/tblCRCTool that referenced this issue Oct 31, 2020
@skliper skliper linked a pull request Nov 2, 2020 that will close this issue
@astrogeco astrogeco added enhancement New feature or request and removed bug Something isn't working labels Feb 8, 2021
@astrogeco astrogeco added this to the 1.3.0 milestone Feb 8, 2021
astrogeco added a commit that referenced this issue Feb 8, 2021
Fix #19, Change full word help option '-help' to '--help'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant