This commit is contained in:
Chris Berkhout 2021-05-30 15:50:48 +02:00
parent 758d02db8e
commit 71ed878c2a
2 changed files with 2 additions and 1 deletions

View file

@ -107,6 +107,7 @@ def build_parser():
def formatter(prog): def formatter(prog):
return argparse.HelpFormatter(prog, max_help_position=50) return argparse.HelpFormatter(prog, max_help_position=50)
default_fmt = Format()
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog="pricehist", prog="pricehist",
description="Fetch historical price data", description="Fetch historical price data",
@ -256,7 +257,6 @@ def build_parser():
type=int, type=int,
help="round to the given number of decimal places", help="round to the given number of decimal places",
) )
default_fmt = Format()
fetch_parser.add_argument( fetch_parser.add_argument(
"--fmt-base", "--fmt-base",
dest="formatbase", dest="formatbase",

View file

@ -2,6 +2,7 @@ import csv
import io import io
from pricehist.format import Format from pricehist.format import Format
from .baseoutput import BaseOutput from .baseoutput import BaseOutput