File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,26 @@ find_package(pugixml REQUIRED)
133133# ============
134134
135135set (XEUS_CPP_HEADERS
136+ include /xeus-cpp/xbuffer.hpp
136137 include /xeus-cpp/xeus_cpp_config.hpp
138+ include /xeus-cpp/xholder.hpp
137139 include /xeus-cpp/xinterpreter.hpp
140+ include /xeus-cpp/xmanager.hpp
141+ include /xeus-cpp/xmagics.hpp
142+ include /xeus-cpp/xoptions.hpp
143+ include /xeus-cpp/xpreamble.hpp
144+ #src/xdemangle.hpp
145+ #src/xinspect.hpp
146+ #src/xsystem.hpp
147+ #src/xparser.hpp
148+ #src/xmagics/os.hpp
138149)
139150
140151set (XEUS_CPP_SRC
141152 src/xholder.cpp
142153 src/xinput.cpp
143154 src/xinterpreter.cpp
155+ src/xmagics/os.cpp
144156 src/xoptions.cpp
145157 src/xparser.cpp
146158 src/xutils.cpp
Original file line number Diff line number Diff line change 1515#include " os.hpp"
1616#include " ../xparser.hpp"
1717
18- #include " xeus-cpp/xoptions.hpp"
19-
2018namespace xcpp
2119{
22- argparser writefile:: get_options ()
20+ static void get_options (argparser &argpars )
2321 {
24- argparser argpars (" file" , XEUS_CLING_VERSION, argparse::default_arguments::none);
2522 argpars.add_description (" write file" );
2623 argpars.add_argument (" -a" , " --append" ).help (" append" ).default_value (false ).implicit_value (true );
2724 argpars.add_argument (" filename" ).help (" filename" ).required ();
@@ -37,12 +34,12 @@ namespace xcpp
3734 .help (" shows help message" )
3835 .implicit_value (true )
3936 .nargs (0 );
40- return argpars;
4137 }
4238
4339 void writefile::operator ()(const std::string& line, const std::string& cell)
4440 {
45- auto argpars = get_options ();
41+ argparser argpars (" file" , XEUS_CPP_VERSION, argparse::default_arguments::none);
42+ get_options (argpars);
4643 argpars.parse (line);
4744
4845 auto filename = argpars.get <std::string>(" filename" );
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ namespace xcpp
2020 {
2121 public:
2222
23- argparser get_options ();
2423 virtual void operator ()(const std::string& line, const std::string& cell) override ;
2524
2625 private:
You can’t perform that action at this time.
0 commit comments