aboutsummaryrefslogtreecommitdiff
path: root/argparse/src/print.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-07 15:17:16 +0000
committerDaniel Mueller <deso@posteo.net>2020-01-08 09:21:15 -0800
commit0b673f2f0184efa0111c4978a2a4159598dee7a6 (patch)
tree4e420e4f6359d1f258ab3fd285de56ad81a13760 /argparse/src/print.rs
parent8482335491aa55b0458ffedccd1fc110f092e38a (diff)
downloadnitrocli-0b673f2f0184efa0111c4978a2a4159598dee7a6.tar.gz
nitrocli-0b673f2f0184efa0111c4978a2a4159598dee7a6.tar.bz2
Remove argparse dependency
As we have replaced argparse with structopt, we no longer need it as a dependency. This patch removes the dependency from Cargo.toml and deletes the included copy. Delete subrepo argparse/:argparse
Diffstat (limited to 'argparse/src/print.rs')
-rw-r--r--argparse/src/print.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/argparse/src/print.rs b/argparse/src/print.rs
deleted file mode 100644
index d0335c5..0000000
--- a/argparse/src/print.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-use Print;
-use action::{IFlagAction, ParseResult};
-
-impl IFlagAction for Print {
- fn parse_flag(&self) -> ParseResult {
- if self.0.ends_with("\n") {
- print!("{}", self.0);
- } else {
- println!("{}", self.0);
- }
- return ParseResult::Exit;
- }
-}