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 {
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
Generated on Mon Oct 9 2023 14:41:56 for xtd by
Gammasoft
. All rights reserved.