<commit_before>About
=====

stravacmd is a Python command line tool for interfacing with
[Strava](https://www.strava.com).  It uses
[pystrava](https://github.com/j2sol/pystrava) to communicate with the Strava
API.

To run directly from a checkout, clone pystrava in another directory and link pystrava/src/pystrava to src/pystrava within stravacmd.<commit_msg>Add some help output<commit_after>About
=====

stravacmd is a Python command line tool for interfacing with
[Strava](https://www.strava.com).  It uses
[pystrava](https://github.com/j2sol/pystrava) to communicate with the Strava
API.

To run directly from a checkout, clone pystrava in another directory and link pystrava/src/pystrava to src/pystrava within stravacmd.

Usage
=====

stravacmd has a help output and help output for each target:

$ ./stravacmd --help
usage: stravacmd [-h] [-v] [-q] {rides} ...

optional arguments:
  -h, --help  show this help message and exit
  -v          verbose
  -q          show no extra output

Targets:
  Valid commands

  {rides}
    rides     Work with Strava rides

$ ./stravacmd rides --help
usage: stravacmd rides [-h] --athlete ATHLETE [--club CLUBID]
                       [--startdate STARTDATE] [--enddate ENDDATE]
                       [--start STARTID]

Display strava rides

optional arguments:
  -h, --help            show this help message and exit
  --athlete ATHLETE     List rides for a particular athlete
  --club CLUBID         List rides for a particular club
  --startdate STARTDATE
                        List rides starting from YYYY-MM-DD
  --enddate ENDDATE     List rides until YYYY-MM-DD
  --start STARTID       List rides newer than (including) this ride number

Examples
=====

$ ./stravacmd rides --athlete 279921 --enddate 2011-11-27
4232472 11/20/2011 Parkland, WA
4232479 11/13/2011 Seattle, WA
4232476 11/06/2011 Lakewood, WA
4232478 11/04/2011 Tacoma, WA
4232480 09/19/2011 Tacoma, WA

$ ./stravacmd rides --athlete 279921 --startdate 2013-02-10 --enddate 2013-02-14
41019628 Dash Point BP
40786069 School + coffee shop
{'fraction_non_alphanumeric': 0.09479824987846379, 'fraction_numerical': 0.06271268838113758, 'mean_word_length': 2.92, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4498525', 'n_tokens_mistral': 775, 'n_tokens_neox': 666, 'n_words': 238}