xtd 0.2.0
environment_command_line.cpp

Shows how to use xtd::environment::command_line method.

#include <xtd/console>
#include <xtd/environment>
using namespace xtd;
auto main() -> int {
// Invoke this sample with an arbitrary set of command line arguments.
}
// This code produces the following output :
//
// >environment_command_line ARBITRARY TEXT
//
// CommandLine: /!---OMITTED---!/environment_command_line ARBITRARY TEXT
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static xtd::string command_line() noexcept
Gets the command line for this process.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8