Added ragione sociale check. Added verbose mode. Now saving all, ft and nc in different files

Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
2021-09-26 17:52:41 +02:00
parent ae88f33f02
commit 7fa8d5120a
3 changed files with 79 additions and 29 deletions

View File

@@ -2,6 +2,7 @@
import os
import sys
import getopt
import subprocess
import atexit
import wx
@@ -20,6 +21,18 @@ CONVERT_ACTION = 20
class FattureCCSRFrame(wx.Frame):
"""main application frame"""
def __init__(self, *args, **kwds):
self.verbose = False
try:
opts, _ = getopt.getopt(sys.argv[1:], "v", ["verbose="])
for opt, _ in opts:
if opt == '-h':
print("fatture_ccsr -v|--verbose")
elif opt in ('-v', '--verbose'):
self.verbose = True
except getopt.GetoptError:
print("fatture_ccsr -v|--verbose")
sys.exit(2)
atexit.register(self.exit_handler)
kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_FRAME_STYLE | wx.FULL_REPAINT_ON_RESIZE | wx.TAB_TRAVERSAL