diff --git a/DESCRIPTION b/DESCRIPTION index 10e9874..0fd4589 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: argparse Type: Package Title: Command Line Optional and Positional Argument Parser -Version: 2.2.0-2 +Version: 2.2.1 Authors@R: c(person("Trevor L", "Davis", role=c("aut", "cre"), email="trevor.l.davis@gmail.com", comment = c(ORCID = "0000-0001-6341-4639")), diff --git a/NEWS.md b/NEWS.md index b48b76d..edb5c72 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -argparse 2.2.0 +argparse 2.2.1 ============== * We now support the following `ArgumentParser()` methods: diff --git a/R/argparse.R b/R/argparse.R index 28bd2df..4235894 100644 --- a/R/argparse.R +++ b/R/argparse.R @@ -70,7 +70,7 @@ ArgumentParser <- function(..., python_cmd = NULL) { # nolint "", "def logical(s):", " if isinstance(s, bool):", - " return bool", + " return s", " elif s in ('T', 'TRUE', 'True', 'true'):", " return True", " elif s in ('F', 'FALSE', 'False', 'false'):", diff --git a/cran-comments.md b/cran-comments.md index 1f0247c..3546bac 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -12,7 +12,7 @@ ## Test environments -* local (linux), R 4.2.1 +* local (linux), R 4.2.2 * win-builder (windows), R devel * Github Actions (linux), R devel, release, oldrel * Github Actions (windows), R release