Tidy.
This commit is contained in:
parent
758d02db8e
commit
71ed878c2a
2 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue