Skip to content

Commit

Permalink
fix required on the args
Browse files Browse the repository at this point in the history
  • Loading branch information
Corfucinas committed Aug 24, 2021
1 parent 6466476 commit 8c578af
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ fn symbol<'a>() -> Arg<'a> {
.value_name("BTC")
.about("Cryptocurrency symbol to download (ie. BTC, ETH, LTC)")
.takes_value(true)
.required(true)
.display_order(1)
.default_value("BTC")
.env("symbol")
Expand All @@ -53,7 +52,6 @@ fn base_currency<'a>() -> Arg<'a> {
.value_name("USDT")
.about("Cryptocurrency base trading pair")
.takes_value(true)
.required(true)
.display_order(2)
.default_value("USD")
.env("base_currency")
Expand All @@ -72,7 +70,6 @@ fn interval<'a>() -> Arg<'a> {
.value_name("1m, 5, 15m, 30m, 1h, 3h, 6h, 12h, 1D, 7D, 14D, 1M")
.about("Interval that will be used to download the data")
.takes_value(true)
.required(true)
.display_order(3)
.default_value("1D")
.env("interval")
Expand All @@ -91,7 +88,6 @@ fn start_date<'a>() -> Arg<'a> {
.value_name("YYYY-MM-DD")
.about("Date to start downloading the data (ie. YYYY-MM-DD)")
.takes_value(true)
.required(true)
.display_order(4)
.default_value("2020-11-01")
.env("start_date")
Expand All @@ -110,7 +106,6 @@ fn end_date<'a>() -> Arg<'a> {
.value_name("YYYY-MM-DD")
.about("Date up to the data will be downloaded (ie. YYYY-MM-DD)")
.takes_value(true)
.required(true)
.display_order(5)
.default_value("2021-01-01")
.env("end_date")
Expand Down

0 comments on commit 8c578af

Please sign in to comment.