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

Add long options like --part #1936

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 27, 2024

  1. Add long options like --part

    Switch the command line argument parser from getopt(3) to
    getopt_long(3) and add a few long options as aliases to existing
    short options, e.g. "--help" and "--part" being aliases for "-?"
    and "-p", respectively.
    
    The getopt_long(3) function is available on GNU, BSD, and the existing
    msvc/getopt.[ch] already implements getopt_long() on Windows. This
    should cover all systems avrdude supports.
    
    Adapt the avrdude usage message shown by "-?" or "--help" to show the
    new long options.
    
    TODO: Adapt man page and texi manual reflecting the long options.
    
    Closes: avrdudes#1922
    ndim committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    818e0e8 View commit details
    Browse the repository at this point in the history