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

thin_trim usage does not match actual getopts settings #41

Open
tyll opened this issue Mar 3, 2016 · 0 comments
Open

thin_trim usage does not match actual getopts settings #41

tyll opened this issue Mar 3, 2016 · 0 comments

Comments

@tyll
Copy link

tyll commented Mar 3, 2016

The thin_trim usage is:

thin_trim_cmd::usage(std::ostream &out) const
{
    out << "Usage: " << get_name() << " [options] {device|file}\n"
        << "Options:\n"
        << "  {--pool-inactive}\n"
        << "  {-h|--help}\n"
        << "  {-V|--version}" << endl;
}

but the getopt structure is different:

    const struct option longopts[] = {
        { "help", no_argument, NULL, 'h' },
        { "version", no_argument, NULL, 'V' },
        { "metadata-dev", required_argument, NULL, 0 },
        { "data-dev", required_argument, NULL, 1 },
        { "pool-inactive", no_argument, NULL, 2 },
        { NULL, no_argument, NULL, 0 }
    };

Also the manpage does not match the getopt options.

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