question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improper CLI parsing of settings_set

See original GitHub issue

Calling ./lbrynet-cli settings_set max_key_fee="zzz" instead set my download_directory to max_key_fee="zzz"

kauffj@kauffj-T570:~/Downloads$ ./lbrynet-cli settings_set max_key_fee="zzz"
{
  "allowed_origin": "",
  "announce_head_blobs_only": false,
  "api_host": "localhost",
  "api_port": 5279,
  "auto_re_reflect": true,
  "auto_re_reflect_interval": 3600,
  "cache_time": 150,
  "data_dir": "/home/kauffj/.local/share/lbry/lbrynet",
  "data_rate": 0.0001,
  "delete_blobs_on_remove": true,
  "dht_node_port": 4444,
  "disable_max_key_fee": true,
  "download_directory": "max_key_fee=zzz",
  "download_timeout": 180,
  "is_generous_host": true,
  "known_dht_nodes": [
    [
      "lbrynet1.lbry.io",
      4444
    ],
    [
      "lbrynet2.lbry.io",
      4444
    ],
    [
      "lbrynet3.lbry.io",
      4444
    ]
  ],
  "lbryum_wallet_dir": "/home/kauffj/.local/share/lbry/lbryum",
  "max_connections_per_stream": 5,
  "max_key_fee": {
    "amount": null,
    "currency": "LBC"
  },
  "min_info_rate": 0.02,
  "min_valuable_hash_rate": 0.05,
  "min_valuable_info_rate": 0.05,
  "peer_port": 3333,
  "peer_search_timeout": 3,
  "pointtrader_server": "http://127.0.0.1:2424",
  "reflect_uploads": true,
  "reflector_port": 5566,
  "reflector_servers": [
    [
      "reflector.lbry.io",
      5566
    ]
  ],
  "run_reflector_server": false,
  "sd_download_timeout": 3,
  "seek_head_blob_first": true,
  "share_usage_data": true,
  "use_auth_http": false,
  "use_upnp": true,
  "wallet": "lbryum"
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rickbatkacommented, Feb 6, 2018

Never mind, I found it - it is on the cli side. Looks like a docopt change will fix that part. I think I can handle it from here.

0reactions
kauffjcommented, Feb 8, 2018

@lyoshenka can we get @rickbatka some guidance on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow to modify the parser settings after initialization · Issue #506
Parser.Settings is readonly and has only Get without Set as shown here . It should be only configured via the the constructor of...
Read more >
Tips for using the Azure CLI successfully - Microsoft Learn
Learn tips for using Azure CLI successfully, such as output formats, passing parameter values, and quoting rules for different shells.
Read more >
command line arguments given to a C# program are parsed ...
I created a little batch file that would display the command line parameters. With your first command line, I get 1 -p 2...
Read more >
OCaml library : Arg
Parsing of command line arguments. This module provides a general mechanism for extracting options and arguments from the command line to the program....
Read more >
argparse — Parser for command-line options, arguments and ...
') The ArgumentParser object will hold all the information necessary to parse the command line into Python data types.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found