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

feat(worker/args): add basic command-line args parser #30

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

lffg
Copy link
Contributor

@lffg lffg commented Apr 12, 2024

cargo run -p worker -- --help example output:

$ cargo run -p worker -- --help
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/worker --help`
Usage: worker [OPTIONS] --controller-addr <CONTROLLER_ADDR>

Options:
  -c, --controller-addr <CONTROLLER_ADDR>
          Controller's HTTP address

      --metrics-report-interval <METRICS_REPORT_INTERVAL>
          Interval at which metrics are pushed to the controller.
          
          Time in seconds. Must be greater than 1.
          
          [default: 5]

  -h, --help
          Print help (see a summary with '-h')

@lffg lffg merged commit 3b4401a into main Apr 12, 2024
3 checks passed
@lffg lffg deleted the feat/worker/args branch April 12, 2024 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant