Skip to content

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

@oddstr13

Description

@oddstr13

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions