mbakholdina / lib-tcpdump-processing

Library designed to process .pcap(ng) tcpdump or Wireshark trace files and extract SRT packets of interest for further analysis
15 stars 3 forks source link

Removed help from arguments. #44

Closed maxsharabayko closed 1 year ago

maxsharabayko commented 1 year ago

Not supported by click.

mbakholdina commented 1 year ago

help is supported by click and worked all the time for my scripts like this one. What exactly is broken and which version of click library are you using? Removing help doesn't sound like a good option for me.

mbakholdina commented 1 year ago

Sorry, you are right. I missed that you are talking about arguments, not options. Here is the trick to document arguments.

maxsharabayko commented 1 year ago

Done, thank you.

Usage: dump_pkt_timestamps.py [OPTIONS] INPUT OUTPUT

  This script parses .pcap or .pcapng tcpdump trace file and outputs all
  original data packet SRT timestamps (not Wireshark capture time) into a CSV
  file.

  INPUT is the pcap file to use as an input.

  OUTPUT is the output CSV file to be produced.

Options:
  --overwrite / --no-overwrite  If exists, overwrite the .csv file produced
                                out of the .pcap (or .pcapng) tcpdump trace
                                one at the previous iterations of running the
                                script.  [default: no-overwrite]
  --help                        Show this message and exit.