Skip to content

Commit

Permalink
Put inside main function
Browse files Browse the repository at this point in the history
  • Loading branch information
kphaterp committed Nov 18, 2021
1 parent 7785d60 commit c53b3a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions demo.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Options:

library(docopt)
opt <- docopt(doc)
print(opt$arg4)
print(opt)
print(typeof(opt))
main <- function(arg4) {
print(arg4)
print(opt)
print(typeof(opt))
}

main(opt$arg4)

0 comments on commit c53b3a4

Please sign in to comment.