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

getopt assigns sample rate to the verbose option; -v -s 8000 #2

Open
oddstr13 opened this issue Nov 10, 2015 · 0 comments
Open

getopt assigns sample rate to the verbose option; -v -s 8000 #2

oddstr13 opened this issue Nov 10, 2015 · 0 comments

Comments

@oddstr13
Copy link

getopt(argc, argv, "s:h:v:w") in main() should probably be getopt(argc, argv, "s:hvw") (only -s accepting an argument, as I understand it.)

"The options argument is a string that specifies the option characters that are valid for this program. An option character in this string can be followed by a colon (‘:’) to indicate that it takes a required argument. If an option character is followed by two colons (‘::’), its argument is optional; this is a GNU extension." - https://www.gnu.org/software/libc/manual/html_node/Using-Getopt.html

example; https://www.gnu.org/software/libc/manual/html_node/Example-of-Getopt.html

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

1 participant