Arguments
- Converted from Arguments to A3.
This commit is contained in:
@@ -49,10 +49,10 @@ CmdMerge::CmdMerge ()
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdMerge::execute (std::string& output)
|
||||
{
|
||||
Arguments words = context.args.extract_simple_words ();
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
std::string file;
|
||||
if (words.size ())
|
||||
file = words[0]._first;
|
||||
file = words[0];
|
||||
|
||||
std::string pushfile = "";
|
||||
std::string tmpfile = "";
|
||||
|
||||
@@ -48,10 +48,10 @@ CmdPull::CmdPull ()
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdPull::execute (std::string& output)
|
||||
{
|
||||
Arguments words = context.args.extract_simple_words ();
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
std::string file;
|
||||
if (words.size ())
|
||||
file = words[0]._first;
|
||||
file = words[0];
|
||||
|
||||
Uri uri (file, "pull");
|
||||
uri.parse ();
|
||||
|
||||
@@ -50,10 +50,10 @@ CmdPush::CmdPush ()
|
||||
// this is potentially on another machine, no checking can be performed.
|
||||
int CmdPush::execute (std::string& output)
|
||||
{
|
||||
Arguments words = context.args.extract_simple_words ();
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
std::string file;
|
||||
if (words.size ())
|
||||
file = words[0]._first;
|
||||
file = words[0];
|
||||
|
||||
Uri uri (file, "push");
|
||||
uri.parse ();
|
||||
|
||||
Reference in New Issue
Block a user