treewide: Disable automatic argparse argument shortening

Disables allowing the python argparse library from automatically
shortening command line arguments, this prevents issues whereby
a new command is added and code that wrongly uses the shortened
command of an existing argument which is the same as the new
command being added will silently change script behaviour.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
diff --git a/scripts/build/file2hex.py b/scripts/build/file2hex.py
index 0fcb9eb..34857d4 100755
--- a/scripts/build/file2hex.py
+++ b/scripts/build/file2hex.py
@@ -23,7 +23,7 @@
 
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument("-f", "--file", required=True, help="Input file")
     parser.add_argument("-g", "--gzip", action="store_true",
diff --git a/scripts/build/gen_app_partitions.py b/scripts/build/gen_app_partitions.py
index 2017011..a1e691a 100644
--- a/scripts/build/gen_app_partitions.py
+++ b/scripts/build/gen_app_partitions.py
@@ -232,7 +232,7 @@
     global args
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
     parser.add_argument("-d", "--directory", required=False, default=None,
                         help="Root build directory")
     parser.add_argument("-e", "--elf", required=False, default=None,
diff --git a/scripts/build/gen_cfb_font_header.py b/scripts/build/gen_cfb_font_header.py
index 380237e..dacb76c 100755
--- a/scripts/build/gen_cfb_font_header.py
+++ b/scripts/build/gen_cfb_font_header.py
@@ -194,7 +194,7 @@
     global args
     parser = argparse.ArgumentParser(
         description="Character Frame Buffer (CFB) font header file generator",
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument(
         "-z", "--zephyr-base",
diff --git a/scripts/build/gen_handles.py b/scripts/build/gen_handles.py
index 511a03f..366f9a7 100755
--- a/scripts/build/gen_handles.py
+++ b/scripts/build/gen_handles.py
@@ -43,7 +43,7 @@
 
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument("-k", "--kernel", required=True,
                         help="Input zephyr ELF binary")
diff --git a/scripts/build/gen_image_info.py b/scripts/build/gen_image_info.py
index 8403a27..341c84c 100644
--- a/scripts/build/gen_image_info.py
+++ b/scripts/build/gen_image_info.py
@@ -66,7 +66,7 @@
     parser = argparse.ArgumentParser(description='''
     Process ELF file and extract image information.
     Create header file with extracted image information which can be included
-    in other build systems.''')
+    in other build systems.''', allow_abbrev=False)
 
     parser.add_argument('--header-file', required=True,
                         help="""Header file to write with image data.""")
diff --git a/scripts/build/gen_isr_tables.py b/scripts/build/gen_isr_tables.py
index 92b2833..96d5ac9 100755
--- a/scripts/build/gen_isr_tables.py
+++ b/scripts/build/gen_isr_tables.py
@@ -105,7 +105,7 @@
     global args
 
     parser = argparse.ArgumentParser(description=__doc__,
-            formatter_class=argparse.RawDescriptionHelpFormatter)
+            formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument("-e", "--big-endian", action="store_true",
             help="Target encodes data in big-endian format (little endian is "
diff --git a/scripts/build/gen_kobject_list.py b/scripts/build/gen_kobject_list.py
index 9a30540..fd716bf 100755
--- a/scripts/build/gen_kobject_list.py
+++ b/scripts/build/gen_kobject_list.py
@@ -981,7 +981,7 @@
 
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument("-k", "--kernel", required=False,
                         help="Input zephyr ELF binary")
diff --git a/scripts/build/gen_kobject_placeholders.py b/scripts/build/gen_kobject_placeholders.py
index 3cbad0a..52e2dc2 100755
--- a/scripts/build/gen_kobject_placeholders.py
+++ b/scripts/build/gen_kobject_placeholders.py
@@ -108,7 +108,7 @@
 
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument("--object", required=True,
                         help="Points to kobject_prebuilt_hash.c.obj")
diff --git a/scripts/build/gen_offset_header.py b/scripts/build/gen_offset_header.py
index 11cb722..3eb9f21 100755
--- a/scripts/build/gen_offset_header.py
+++ b/scripts/build/gen_offset_header.py
@@ -62,7 +62,7 @@
 if __name__ == '__main__':
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument(
         "-i",
diff --git a/scripts/build/gen_relocate_app.py b/scripts/build/gen_relocate_app.py
index fb312ac..c22dda8 100644
--- a/scripts/build/gen_relocate_app.py
+++ b/scripts/build/gen_relocate_app.py
@@ -407,7 +407,7 @@
     global args
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
     parser.add_argument("-d", "--directory", required=True,
                         help="obj file's directory")
     parser.add_argument("-i", "--input_rel_dict", required=True,
diff --git a/scripts/build/gen_strerror_table.py b/scripts/build/gen_strerror_table.py
index 4e04d79..7ec91df 100755
--- a/scripts/build/gen_strerror_table.py
+++ b/scripts/build/gen_strerror_table.py
@@ -79,7 +79,7 @@
 
 
 def parse_args():
-    parser = argparse.ArgumentParser()
+    parser = argparse.ArgumentParser(allow_abbrev=False)
     parser.add_argument(
         '-i',
         '--input',
diff --git a/scripts/build/gen_syscalls.py b/scripts/build/gen_syscalls.py
index 32f7c6d..5741315 100755
--- a/scripts/build/gen_syscalls.py
+++ b/scripts/build/gen_syscalls.py
@@ -387,7 +387,7 @@
     global args
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument("-i", "--json-file", required=True,
                         help="Read syscall information from json file")
diff --git a/scripts/build/mergehex.py b/scripts/build/mergehex.py
index aba8b43..6d81dbe 100644
--- a/scripts/build/mergehex.py
+++ b/scripts/build/mergehex.py
@@ -35,7 +35,7 @@
 def parse_args():
     parser = argparse.ArgumentParser(
         description="Merge hex files.",
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
     parser.add_argument("-o", "--output", required=False, default="merged.hex",
                         type=argparse.FileType('w', encoding='UTF-8'),
                         help="Output file name.")
diff --git a/scripts/build/parse_syscalls.py b/scripts/build/parse_syscalls.py
index 9994efd..b9aef71 100644
--- a/scripts/build/parse_syscalls.py
+++ b/scripts/build/parse_syscalls.py
@@ -110,7 +110,7 @@
     global args
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)
 
     parser.add_argument("-i", "--include", required=True, action='append',
                         help='''include directories recursively scanned
diff --git a/scripts/build/process_gperf.py b/scripts/build/process_gperf.py
index c086ea1..002cd9c 100755
--- a/scripts/build/process_gperf.py
+++ b/scripts/build/process_gperf.py
@@ -134,7 +134,8 @@
 
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter,
+        allow_abbrev=False)
 
     parser.add_argument("-i", "--input", required=True,
                         help="Input C file from gperf")
diff --git a/scripts/build/subfolder_list.py b/scripts/build/subfolder_list.py
index 8f52889..d6bfdcc 100644
--- a/scripts/build/subfolder_list.py
+++ b/scripts/build/subfolder_list.py
@@ -18,7 +18,8 @@
     """Parse command line arguments and options"""
     parser = argparse.ArgumentParser(
         description=__doc__,
-        formatter_class=argparse.RawDescriptionHelpFormatter)
+        formatter_class=argparse.RawDescriptionHelpFormatter,
+        allow_abbrev=False)
 
     parser.add_argument('-d', '--directory', required=True,
                         help='Directory to walk for sub-directory discovery')
diff --git a/scripts/build/uf2conv.py b/scripts/build/uf2conv.py
index e92c2ec..5da08ef 100755
--- a/scripts/build/uf2conv.py
+++ b/scripts/build/uf2conv.py
@@ -247,7 +247,8 @@
     def error(msg):
         print(msg)
         sys.exit(1)
-    parser = argparse.ArgumentParser(description='Convert to UF2 or flash directly.')
+    parser = argparse.ArgumentParser(description='Convert to UF2 or flash directly.',
+                                     allow_abbrev=False)
     parser.add_argument('input', metavar='INPUT', type=str, nargs='?',
                         help='input file (HEX, BIN or UF2)')
     parser.add_argument('-b' , '--base', dest='base', type=str,