Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve arg pass through #54

Closed
jmbarbone opened this issue Apr 17, 2023 · 0 comments · Fixed by #58
Closed

improve arg pass through #54

jmbarbone opened this issue Apr 17, 2023 · 0 comments · Fixed by #58
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jmbarbone
Copy link
Owner

jmbarbone commented Apr 17, 2023

Should be able to let one arg be dependent on another

library(scribe)
ca <- command_args("-a")
arg <- new_arg("-a", action = "flag")
ca$add_argument(arg)
ca$add_argument("-b", default = arg)
args <- ca$parse()
print(args)
#> $a
#> [1] TRUE
#> 
#> $b
#> [1] TRUE
@jmbarbone jmbarbone added the enhancement New feature or request label Apr 17, 2023
@jmbarbone jmbarbone self-assigned this Apr 17, 2023
@jmbarbone jmbarbone added this to the CRAN v0.2.0 milestone Apr 26, 2023
@jmbarbone jmbarbone changed the title add copying arg improve arg pass through May 1, 2023
@jmbarbone jmbarbone mentioned this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
jmbarbone added a commit that referenced this issue May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant