Some sample programs can't show usage instructions #1120
Labels
component-platform
Portability layer and build scripts
enhancement
historical-reviewing
Currently reviewing (for legacy PR/issues)
Description
Bug
OS
linux|windows
mbed TLS build:
Version: All versions
Configuration: n/a
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): n/a
Additional environment information: n/a
The following sample programs all appear to have a line
if( argc == 0 )
before displaying usage instructions. The problem with that is unlessmain()
is called via some means other than the shell,argc
will always be greater than0
as the first argument inargv
is always the name of the program being executed. The line should beif( argc == 1 )
if it's meant to display when no arguments have been passed. That may be a mistake though, as some of the programs can execute with no provided options.The text was updated successfully, but these errors were encountered: