ZheNing Hu <adlternative@xxxxxxxxx> writes: > Just use a PARSE_OPT_HIDDEN cannot prevent the user from using > the option... Is there a better way? If a command can be invoked from a script, you can invoke it interactively the same way. Not advertising on short help, not completing in the completion and documenting it for internal use is the standard arrangement for such "implementation detail only" options.