PaulMcInnis / JobFunnel

Scrape job websites into a single spreadsheet with no duplicates.
MIT License
1.78k stars 210 forks source link

Change program name to sys.argv[0] (default) #119

Closed markkvdb closed 3 years ago

markkvdb commented 3 years ago

Change program name to sys.argv[0] (default)

Description

Right now, the program name of JobFunnel in the CLI is "Job Search CLI." which is wrong. When calling funnel --help this results in a response as

usage: Job Search CLI. [-h] [--recover] {load,inline} ...

positional arguments:
  {load,inline}  Pass load with a YAML config or inline to pass args by CLI.
    load         Run using an existing configuration YAML.
    inline       Configure search query and data providers via CLI.

optional arguments:
  -h, --help     show this help message and exit
  --recover      Reconstruct a new master CSV file from all available cache
                 files.WARNING: this will replace all the statuses/etc in your
                 master CSV, it is intended for starting fresh / recovering
                 from a bad state.

Context of change

Please add options that are relevant and mark any boxes that apply.

Type of change

Please mark any boxes that apply.

How Has This Been Tested?

Not necessary. Defaulted back to sys.argv[0] instead of custom name.

Checklist:

Please mark any boxes that have been completed.

markkvdb commented 3 years ago

Makes sense,

I think my_settings.yaml was included by mistake?

Yes it was 😄

codecov-io commented 3 years ago

Codecov Report

Merging #119 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #119   +/-   ##
=======================================
  Coverage   35.74%   35.74%           
=======================================
  Files          22       22           
  Lines        1449     1449           
=======================================
  Hits          518      518           
  Misses        931      931           
Impacted Files Coverage Δ
jobfunnel/config/cli.py 90.66% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cf65ca7...0961bd3. Read the comment docs.