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 @@ -132,14 +132,26 @@ find_package(pugixml REQUIRED)
132132# ============
133133
134134set (XEUS_CPP_HEADERS
135+ include /xeus-cpp/xbuffer.hpp
135136 include /xeus-cpp/xeus_cpp_config.hpp
137+ include /xeus-cpp/xholder.hpp
136138 include /xeus-cpp/xinterpreter.hpp
139+ include /xeus-cpp/xmanager.hpp
140+ include /xeus-cpp/xmagics.hpp
141+ include /xeus-cpp/xoptions.hpp
142+ include /xeus-cpp/xpreamble.hpp
143+ #src/xdemangle.hpp
144+ #src/xinspect.hpp
145+ #src/xsystem.hpp
146+ #src/xparser.hpp
147+ #src/xmagics/os.hpp
137148)
138149
139150set (XEUS_CPP_SRC
140151 src/xholder.cpp
141152 src/xinput.cpp
142153 src/xinterpreter.cpp
154+ src/xmagics/os.cpp
143155 src/xoptions.cpp
144156 src/xparser.cpp
145157 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