Arguments

- Converted from Arguments to A3.
This commit is contained in:
Paul Beckingham 2011-07-24 17:03:32 -04:00
parent 2f5bb14d33
commit 56af60ceaf
3 changed files with 6 additions and 6 deletions

View file

@ -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 = "";

View file

@ -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 ();

View file

@ -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 ();