diff --git a/LICENSE.md b/LICENSE.md
index 17558943a..42798d53b 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -90,3 +90,7 @@ RenderDoc also uses several external libraries and components which include thei
- [Qt](http://www.qt.io/)
distributed under the GNU Lesser General Public License (LGPL) version 2.1
Copyright 2015 The Qt Company Ltd.
+
+- [cmdline](https://github.com/tanakh/cmdline)
+ distributed under the New BSD License (3 Clause).
+ Copyright 2009, Hideyuki Tanaka
diff --git a/docs/credits_acknowledgements.rst b/docs/credits_acknowledgements.rst
index 27648592f..cb8655166 100644
--- a/docs/credits_acknowledgements.rst
+++ b/docs/credits_acknowledgements.rst
@@ -72,6 +72,10 @@ The following libraries and components are incorporated into RenderDoc, listed h
Qt
+.. |cmdline_link| raw:: html
+
+ cmdline
+
* |mhook_link| DLL hooking library, used to inject RenderDoc into applications
* |treeview_link| An invaluable control filling a much needed niche in .NET winforms.
* |dockpanel_link| A mature and stable library that adds the docking and flexibility of RenderDoc's UI.
@@ -88,6 +92,7 @@ The following libraries and components are incorporated into RenderDoc, listed h
* |tinyexr_link| Used for the OpenEXR file loading and saving.
* |glslang_link| Used for compiling GLSL to SPIR-V.
* |qt_link| Used for QRenderDoc replay UI program.
+* |cmdline_link| Used for parsing command line arguments to renderdoccmd.
Thanks
------
diff --git a/installer/LICENSE.rtf b/installer/LICENSE.rtf
index 4c4b1e0a5..8eb240704 100644
Binary files a/installer/LICENSE.rtf and b/installer/LICENSE.rtf differ
diff --git a/renderdoccmd/3rdparty/cmdline/cmdline.h b/renderdoccmd/3rdparty/cmdline/cmdline.h
new file mode 100644
index 000000000..de9eaf74b
--- /dev/null
+++ b/renderdoccmd/3rdparty/cmdline/cmdline.h
@@ -0,0 +1,809 @@
+/*
+ Copyright (c) 2009, Hideyuki Tanaka
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of the nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY ''AS IS'' AND ANY
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#pragma once
+
+#include
+#include
+#include
+#include