Skip to content

Commit

Permalink
Removing signature command-line option.
Browse files Browse the repository at this point in the history
This addresses issue #125.
  • Loading branch information
jlconlin committed Nov 2, 2020
1 parent 1abe236 commit d584b52
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/njoy21.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ struct CommandLine;
#include "njoy21/interface.hpp"
#include "njoy21/legacy.hpp"
#include "njoy21/Version.hpp"
#include "njoy21/Signature.hpp"

}
}
Expand Down
1 change: 0 additions & 1 deletion src/njoy21/CommandLine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ struct njoy::njoy21::CommandLine {
std::optional< std::string > errorPath;
bool legacySwitch;
bool verifyOnly;
bool signature;

/* methods */
#include "njoy21/CommandLine/src/ctor.hpp"
Expand Down
6 changes: 0 additions & 6 deletions src/njoy21/CommandLine/src/ctor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ CommandLine( int argc, char* argv[] ){
"path to file where NJOY21 error ought to be directed. (defaults to standard error)",
false, std::optional< std::string >(), " error path", cmd );

TCLAP::SwitchArg
signature( "", "signature",
"Write signature to standard output",
cmd );

TCLAP::SwitchArg
legacySwitch( "L", "legacy",
"Call to Fortran routines even if C++ routines are available", cmd );
Expand All @@ -43,6 +38,5 @@ CommandLine( int argc, char* argv[] ){
this->errorPath = errorPath.getValue();
this->legacySwitch = legacySwitch.getValue();
this->verifyOnly = verifyOnly.getValue();
this->signature = signature.getValue();
}

1 change: 0 additions & 1 deletion src/njoy21/CommandLine/test/CommandLine.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ SCENARIO( "Parsing a command-line interface for options and flags" ){
REQUIRE( not CL.outputPath );
REQUIRE( not CL.legacySwitch );
REQUIRE( not CL.verifyOnly );
REQUIRE( not CL.signature );
}
GIVEN( "An instance of the Commandline with an input path" ){
std::vector< std::string > arguments = { "njoy21", "--input", "/my/path" };
Expand Down
4 changes: 0 additions & 4 deletions src/njoy21/Driver/Factory/src/setupManager.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
static io::Manager setupManager( CommandLine& commandLine ){
io::Manager::Builder builder;
if( commandLine.signature ){
std::cout << Signature::signature() << std::endl;
std::exit( 0 );
}

if ( commandLine.inputPath ){
builder.input( *(commandLine.inputPath) );
Expand Down
6 changes: 0 additions & 6 deletions src/njoy21/Signature.hpp.in

This file was deleted.

0 comments on commit d584b52

Please sign in to comment.