As a user of krb5 command line tools I want to have a consistent getopt()-based command syntax for all commands so I don't have to learn numerous idiosyncratic command syntaxes

Description

Command line parsing is not consistent across krb5 programs. Some use getopt() or getopt_long(), and others roll their own argument parsing. This results in surprising behavior for some users, including some error cases that can be difficult to diagnose.

Use getopt() or getopt_long() as appropriate in all krb5 programs. Some programs such as kadmin have unusual command line syntax, e.g., "modprinc +requires_preauth". We can try to preserve that syntax at the cost of some code complexity, or we can replace it with more standard syntax.

Also investigate whether we can assume the existence of getopt_long() (or at least assume that we can provide a usable substitute if the OS provides no implementation of getopt_long().

Status

Assignee

Unassigned

Reporter

Tom Yu

Labels

None

Components

Priority

Normal

Epic Name

getopt all the things