summaryrefslogtreecommitdiff
path: root/rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs
diff options
context:
space:
mode:
authorgarhve <git@garhve.com>2023-01-09 18:34:39 +0800
committergarhve <git@garhve.com>2023-01-09 18:34:39 +0800
commitbcc303880f7078d612207571e196697a0d0b35bf (patch)
tree162b1cc2d12ee30c2749d4fb8bda4122d8767319 /rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs
parentfb2299d7e10f63af36a35e0b1c16adbcdd416b02 (diff)
finish chapter 11
Diffstat (limited to 'rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs')
-rw-r--r--rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs b/rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs
new file mode 100644
index 0000000..ae7def5
--- /dev/null
+++ b/rust/theBook/chapter-12-command-line-project/minigrep/src/main.rs
@@ -0,0 +1,6 @@
+use std::env;
+
+fn main() {
+ let args: Vec<String> = env::args().collect();
+ dbg!(args);
+}