From 8482335491aa55b0458ffedccd1fc110f092e38a Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 7 Jan 2020 15:15:38 +0000 Subject: Replace argparse with structopt This patch changes the argument handling code to use structopt instead of argparse using the data structures we introduced in the last patch. As part of that transition we replace the old Error::ArgparseError variant with ClapError that stores a structopt::clap::Error. Because of that replacement, the format of the help messages changed, breaking some of the tests. Hence, this change adapts them accordingly. Also clap currently prints the version output to stdout, so we ignore the version_option test case for now. --- nitrocli/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) (limited to 'nitrocli/CHANGELOG.md') diff --git a/nitrocli/CHANGELOG.md b/nitrocli/CHANGELOG.md index 302b3c2..88bb101 100644 --- a/nitrocli/CHANGELOG.md +++ b/nitrocli/CHANGELOG.md @@ -2,6 +2,7 @@ Unreleased ---------- - Reworked argument handling: - Added `structopt` dependency in version `0.3.7` + - Replaced `argparse` with `structopt` 0.3.1 ----- -- cgit v1.2.1