implemetation of AtomCommandline to preserve args
This commit is contained in:
parent
8aae7c4440
commit
399f47ef0f
12 changed files with 104 additions and 59 deletions
18
atom/app/atom_main_args.cc
Normal file
18
atom/app/atom_main_args.cc
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright (c) 2013 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "atom/app/atom_main_args.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
void AtomCommandLine::Init(int argc,
|
||||
const char* const* argv) {
|
||||
for (int i = 0; i < argc; ++i) {
|
||||
argv_.push_back(argv[i]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> AtomCommandLine::argv_;
|
||||
|
||||
} // namespace atom
|
Loading…
Add table
Add a link
Reference in a new issue