xtd 0.2.0
Loading...
Searching...
No Matches
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 {
console::write_line();
// Invoke this sample with an arbitrary set of command line arguments.
console::write_line("command_line: {0}", environment::command_line());
}
// This code produces the following output :
//
// >environment_command_line ARBITRARY TEXT
//
// CommandLine: /!---OMITTED---!/environment_command_line ARBITRARY TEXT
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10