Fix kicad-cli pcb export gerbers --output argument type in help.

It is a directory name, not a filename

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20298
This commit is contained in:
jean-pierre charras 2025-04-17 11:26:27 +02:00
parent 194ee9ef25
commit e6240f9fbf
3 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,8 @@
#include <string_utils.h>
CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aName ) :
PCB_EXPORT_BASE_COMMAND( aName )
CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aName, bool aOutputIsDir ) :
PCB_EXPORT_BASE_COMMAND( aName, false, aOutputIsDir )
{
addLayerArg();
addCommonLayersArg();

View File

@ -37,7 +37,7 @@ namespace CLI
class PCB_EXPORT_GERBER_COMMAND : public PCB_EXPORT_BASE_COMMAND
{
public:
PCB_EXPORT_GERBER_COMMAND( const std::string& aName );
PCB_EXPORT_GERBER_COMMAND( const std::string& aName, bool aOutputIsDir = false );
PCB_EXPORT_GERBER_COMMAND();
protected:

View File

@ -30,7 +30,7 @@
CLI::PCB_EXPORT_GERBERS_COMMAND::PCB_EXPORT_GERBERS_COMMAND() :
PCB_EXPORT_GERBER_COMMAND( "gerbers" )
PCB_EXPORT_GERBER_COMMAND( "gerbers", true )
{
addCommonLayersArg();